Re: [v8-users] v8::ScriptOrigin line/column offset

2020-11-13 Thread Bit Cortex
Thanks for your responses! On Friday, November 13, 2020 at 1:22:51 AM UTC-5 szu...@google.com wrote: > This is used e.g. when your script is inline in

Re: [v8-users] v8::ScriptOrigin line/column offset

2020-11-12 Thread 'Simon Zünd' via v8-users
This is used e.g. when your script is inline in

Re: [v8-users] v8::ScriptOrigin line/column offset

2020-11-12 Thread Ben Ernst
Yes that's right, when a debugger or an error message says you're on line X and column Y, it deducts the values you specify in the offsets. So if you transform user's code in some form, the error messages can be adjusted to still have the right line numbers and column numbers. On Fri, 13 Nov 202

Re: [v8-users] v8::ScriptOrigin line/column offset

2020-11-12 Thread Bit Cortex
Thanks, but what's the actual effect of setting the line or column offset to a nonzero value? Based on your description, I'd guess that it might affect stack traces and possibly debugging. Can someone confirm that? Or do I not understand correctly? On Wednesday, November 11, 2020 at 5:05:50 PM

Re: [v8-users] v8::ScriptOrigin line/column offset

2020-11-11 Thread Ben Noordhuis
On Wed, Nov 11, 2020 at 9:26 PM Bit Cortex wrote: > > Hello! > > Could someone describe the purpose of the line and column offset properties > of v8::ScriptOrigin? What effect do nonzero values have? > > Thanks! I believe they're intended to offset IIFEs[1] and other wrappers that embedders may