Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #311.

  • Loading branch information...
commit fd622aa2512446c444b8bc0a6c6ef9723de18ea8 1 parent 0b64003
@matthias-springer matthias-springer authored
View
5 src/smalltalk/ruby/ExecBlock_ruby.gs
@@ -32,6 +32,11 @@ _copyForRuby: opcode newBlockMethsInto: anArray
%
method:
+_rubyInstvarAt: descrArray
+ ^ self instVarNamed: descrArray first
+%
+
+method:
_copyForProc: opcode
"opcode == 0 , copy receiver for use in Proc.new_lambda .
opcode == 2, copy receiver for use in Proc.new
View
22 src/test/github311.rb
@@ -0,0 +1,22 @@
+y = Thread.start do
+ begin
+ begin
+ 1 / 0
+ ensure
+ 0
+ end
+ rescue Exception => e
+ Thread.stop
+ end
+end
+
+class Thread
+ primitive '__local_frame_contents_at', '_localFrameContentsAt:'
+ primitive '__local_stack_depth', 'localStackDepth'
+ primitive '__local_method_at', 'localMethodAt:'
+end
+
+a = y.__local_frame_contents_at(9)[9].instance_variable_get("@_st__method")
+raise "instvar getter not overridden for ExecBlock" unless a.class == GsNMethod
+# a.class should not be GsNativeCode or a.inspect will segfault
+
View
1  src/test/vmunit.conf
@@ -456,6 +456,7 @@ github250.rb
github253.rb
github258.rb
github290.rb
+github311.rb
testMarshal.rb # after other coverage of Hash
#
Please sign in to comment.
Something went wrong with that request. Please try again.