mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
run Context#scope through the standard conversion. It might be a primitive after all :)
This commit is contained in:
parent
ec749aab49
commit
6714c0d737
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ module V8
|
|||
attr_reader :native, :scope
|
||||
def initialize(opts = {})
|
||||
@native = C::Context::New(opts[:with])
|
||||
@scope = V8::Object.new(@native.Global(), @native)
|
||||
@native.enter do
|
||||
@scope = To.rb(@native.Global())
|
||||
end
|
||||
yield(self) if block_given?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue