[v8-users] Executing JS within an android app

2016-07-01 Thread Poorna
Hello folks, We are writing an android app in which we want to execute javascript from app. Since v8 is in-built into android, can we use v8 through JNI/NDK to execute javascript? While searching through Internet I found this SO question( http://stackoverflow.com/questions/6880778/android-uti

Re: [v8-users] Stack variable substitution in JS code using V8

2016-07-01 Thread Abhishek Singh
Thanks Ben, tagged template literals would solve my problem is a portable manner. > On 01-Jul-2016, at 3:23 PM, Ben Noordhuis wrote: > > On Fri, Jul 1, 2016 at 5:16 AM, Abhishek Singh > mailto:singhabhishek@gmail.com>> wrote: >> Hi, >> >> As part of v8 embedding work recently, I've encount

Re: [v8-users] Stack variable substitution in JS code using V8

2016-07-01 Thread Ben Noordhuis
On Fri, Jul 1, 2016 at 5:16 AM, Abhishek Singh wrote: > Hi, > > As part of v8 embedding work recently, I've encountered one more use case: > > Sample app.js: > === > > var database_table = "beer_sample"; > var city = "BLR"; > > // "query" is a FunctionTemplate exposed via an ObjectTemplate

Re: [v8-users] Attaching debugger to embedded v8

2016-07-01 Thread Ben Noordhuis
On Fri, Jul 1, 2016 at 9:18 AM, Neil Moore wrote: > On Thursday, 30 June 2016 20:34:32 UTC+1, Ben Noordhuis wrote: >> >> It's the thing that is not maintained but it still works well enough >> in V8 5.0 and 5.1 that node.js can use it. Try passing >> --trace_debug_json to V8. > > > Thanks for tha

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Amaranth F
Yes it works, thank you very much! 在 2016年7月1日星期五 UTC+8下午4:24:26,Jochen Eisinger写道: > > GYP_GENERATOR=ninja will create files for the ninja build system. If you > want MSVS files, you'll have to unset that variable (or set it to msvs I > think) > > On Fri, Jul 1, 2016 at 9:21 AM Amaranth F > wr

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Jochen Eisinger
GYP_GENERATOR=ninja will create files for the ninja build system. If you want MSVS files, you'll have to unset that variable (or set it to msvs I think) On Fri, Jul 1, 2016 at 9:21 AM Amaranth F wrote: > Yes, I followed the instruction from here >

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Amaranth F
Yes, I followed the instruction from here . set GYP_GENERATORS=ninja python build\gyp_v8 在 2016年7月1日星期五 UTC+8下午3:15:57,Jochen Eisinger写道: > > Do you happen to have any gyp related environment variable set, e.g. > GYP_GENERATORS? > > On Thu,

Re: [v8-users] Attaching debugger to embedded v8

2016-07-01 Thread Neil Moore
On Thursday, 30 June 2016 20:34:32 UTC+1, Ben Noordhuis wrote: > > It's the thing that is not maintained but it still works well enough > in V8 5.0 and 5.1 that node.js can use it. Try passing > --trace_debug_json to V8. > Thanks for that. Sorry to be a pest, I turn that on but I don't see any

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Jochen Eisinger
Do you happen to have any gyp related environment variable set, e.g. GYP_GENERATORS? On Thu, Jun 30, 2016 at 2:25 PM Amaranth F wrote: > I've built v8 successfully some days ago, and today I'm following this > post to add extra files to my project. > http://v8project.blogspot.com/2016/02/v8-extr