1
0
Fork 0
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:
Charles Lowell 2010-08-28 14:05:56 -05:00
parent e4d96e24ed
commit 1fd52be6dd
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -1,6 +1,7 @@
module V8
class Portal
attr_reader :context
def initialize(context)
@context = context