I believe we should consider only sourceURL that are at the end of file.
If
there is something like
function foo(){}
//@ sourceURL = url.js
function bar(){}
we should skip the url as far as I remember.
This is not quite so. For example we want to support a case when the script
has
both sourceURL and sourceMappingURL annotations (it is obviously not
possible
for both of them to be on the last line).
Actually is it possible to parse sourceMappingURL as well in this patch?
Also one thing that is probably different (i am not sure) in our
implementations
is that we deny whitespace after sourceURL, see
https://codereview.chromium.org/256543002
FYI We have a test for sourceURL:
LayoutTests/inspector/sources/debugger/source-url-comment.html
https://codereview.chromium.org/316173002/
--
--
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.