mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
allow function to access the global object.
This commit is contained in:
parent
e4d96e24ed
commit
1fd52be6dd
2 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ module V8
|
|||
end
|
||||
|
||||
def call(*args)
|
||||
self.methodcall(@context.Global(), *args)
|
||||
self.methodcall(@portal.context.native.Global(), *args)
|
||||
end
|
||||
|
||||
def new(*args)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
module V8
|
||||
class Portal
|
||||
attr_reader :context
|
||||
|
||||
def initialize(context)
|
||||
@context = context
|
||||
|
|
Loading…
Add table
Reference in a new issue