PTAL
Here is background on how I got to where I am.
At first I thought I could just set the start_position and end_position on
the
SharedFunctionInfo. That does not work because the position is used by the
lazy
compilation so the second time when it tries to parse the function body it
sees
"class".
So I thought I can just store the position and get the script source file
from
the constructor. That also fails because if there is no constructor we use a
generated constructor which does not point back to the script.
So, to return the source we need to store script, start and end position on
the
function object.
https://codereview.chromium.org/624013005/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.