mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
make sure to enter the context when iterating incase the array contains references to objects
This commit is contained in:
parent
f05dda07f6
commit
946af8f3d4
2 changed files with 5 additions and 3 deletions
|
@ -3,8 +3,10 @@ module V8
|
|||
class Array < V8::Object
|
||||
|
||||
def each
|
||||
for i in 0..(@native.Length() - 1)
|
||||
yield To.ruby(@native.Get(i))
|
||||
@context.enter do
|
||||
for i in 0..(@native.Length() - 1)
|
||||
yield To.ruby(@native.Get(i))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f1d47fe8303d6ae6a85d6e523368f79a20c4354e
|
||||
Subproject commit 08ba26e9295d69c09ecc0ed76c1346b98e52a066
|
Loading…
Reference in a new issue