samples/shell.cc and src/d8.cc implement a load() function similar to php's include().
-Louis On Tue, Jan 5, 2010 at 7:07 PM, Colin <[email protected]> wrote: > I want to create an include function in my embedded app using V8. > Currently I'm using > > eval(get_file_contents('./js/functions.js')); > > to sorta do the same thing, but is there a better way? I tried to make > a function, and it worked fine, but the script executed in the new > scope of the function. Is there a way to maybe execute a script under > a different scope? > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users >
-- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
