Re: [v8-users] Re: Protecting IP

2016-06-27 Thread joko suwito
Maaf saya tidak kesengajaan saya. T.ksh Pada tanggal 27 Jun 2016 18.05, "Yang Guo" menulis: > Is there any way for an user run code on the node.js instance at all? I'm > asking since node.js runs on the server, so the source is usually not > accessible from outside. > > >

Re: [v8-users] Re: Protecting IP

2016-06-27 Thread Mike Schwartz
It doesn't seem that hard to hack node to do this. You use something like nasm and include your packaged .js program. Then hack node to load and optionally decrypt your program and eval() it. Nasm generates a .o file you link your custom node with. Seems like a couple of hours' work. You would

[v8-users] Re: Protecting IP

2016-06-27 Thread Zephyr Pellerin
This is actually a fairly common requirement that I've had the "pleasure" of dealing with for a host of people and firms. Unfortunately, it's also very easy to mess up without a lot of care. I have a longtime interest in reverse engineering so I may have a different standard of "trivial

Re: [v8-users] Current value in interceptors

2016-06-27 Thread Ben Noordhuis
On Mon, Jun 27, 2016 at 3:20 PM, Danny Dorfman wrote: > Hello Ben, > Actually, I was expecting the current value to be there. As Jochen mentioned > below, it's only valid if it's been previously set within the interceptor. > Is there a way to know the real current value

Re: [v8-users] Current value in interceptors

2016-06-27 Thread Danny Dorfman
Hello Ben, Actually, I was expecting the current value to be there. As Jochen mentioned below, it's only valid if it's been previously set within the interceptor. Is there a way to know the *real* current value before it's overwritten? D. On Monday, June 27, 2016 at 12:24:57 PM UTC+3, Ben

[v8-users] Re: How to tune the garbage collector interval in v8 (--gc_interval is not working)

2016-06-27 Thread Yang Guo
You can run V8 with --expose-gc. You can then call gc() to manually trigger gc. Don't assume this to be officially supported though. On Monday, June 13, 2016 at 6:16:23 PM UTC+2, WENZHI CUI wrote: > > Hi Yang, > Thanks very much for the reply. > I have one follow-up question: > Is there

[v8-users] Re: Protecting IP

2016-06-27 Thread Yang Guo
Is there any way for an user run code on the node.js instance at all? I'm asking since node.js runs on the server, so the source is usually not accessible from outside. On Tuesday, June 14, 2016 at 3:33:35 PM UTC+2, Joe Bloggs wrote: > > Hi, > > My employer is looking to shift major

Re: [v8-users] Current value in interceptors

2016-06-27 Thread Jochen Eisinger
ReturnValue::Get only tells you what the return value you previously have set is. Ideally, you use a non-masking interceptor. In that case, you know that the current value is not defined. best -jochen On Mon, Jun 27, 2016 at 11:24 AM Ben Noordhuis wrote: > On Sun, Jun 26,

Re: [v8-users] Current value in interceptors

2016-06-27 Thread Ben Noordhuis
On Sun, Jun 26, 2016 at 3:04 PM, Danny Dorfman wrote: > Hi there, > > I am writing some interceptor code for my objects, and I was wondering, > whether it was possible to know, > what is the current value for the property, before it's overwritten by >