[v8-users] How to tell if a name will conflict with a built-in?

2016-09-06 Thread Zac Hansen
How can I tell if a name I'm putting on an ObjectTemplate will conflict with something built-in to javascript? For example, I was trying to add "Map" to the global context object and only after getting the rather unhelpful error: # # Fatal error in ../src/objects.cc, line 5270 # Check failed:

[v8-users] Re: Build v8 with visual studio 2015

2016-09-06 Thread Philippe Ferdinand
Have you tried to build the libraries using ninja? I followed your instructions and then used ninja. Everything compile and link like a charms but I've not yet tested the libs with my own code: Y:\lib-v8\v8>ninja -C out/Release_x64/ ninja: Entering directory `out/Release_x64/' [1259/1259] STAMP

Re: [v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Abhishek Singh
Before compilation of user supplied JS code(assuming you’re storing it as std::string), append the helper functions to it(which you might be reading from a file sitting in some predefined location) and finally compile the resultant std::string(in below snippet assuming “src” stores the resultant

Re: [v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Renier
Are you saying I should compile each script in the context of where I will run the user's js? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubs

Re: [v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Renier
Thanks for the quick reply Ben, but i'm not sure i'm following -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop r

Re: [v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Renier
Thanks for the quick reply Ben, but i'm not sure i'm following. On Tuesday, 6 September 2016 14:53:51 UTC+2, Ben Noordhuis wrote: > > On Tue, Sep 6, 2016 at 2:37 PM, Renier > wrote: > > I have an application that embeds v8 and I want to include a series of > > helper javascript functions at the

Re: [v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Ben Noordhuis
On Tue, Sep 6, 2016 at 2:37 PM, Renier wrote: > I have an application that embeds v8 and I want to include a series of > helper javascript functions at the time of compiling a code snippet so that > the user is able to use my helper functions. > These functions don't interact with C++ at all and a

[v8-users] How do I include a javascript function inside of embedded v8?

2016-09-06 Thread Renier
I have an application that embeds v8 and I want to include a series of helper javascript functions at the time of compiling a code snippet so that the user is able to use my helper functions. These functions don't interact with C++ at all and are merely there as helper functions. i.e. function