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 UTC-5 Ben Noordhuis wrote: > On Wed, Nov 11, 2020 at 9:26 PM Bit Cortex <bitc...@gmail.com> 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 want to add around the user's script code. > > [https://en.wikipedia.org/wiki/Immediately-invoked_function_expression] > -- -- 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 receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/f9f3c898-d022-48d9-b14b-d670731b8008n%40googlegroups.com.