[Webkit-unassigned] [Bug 114969] Web Inspector: //@ sourceURL does not work in new Function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 22 11:27:17 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114969
--- Comment #4 from Timothy Hatcher <timothy at apple.com> 2013-04-22 11:25:36 PST ---
It turns out this is hitting an optimization of the engine. We don't parse the script in the function until the function is called.
So to trigger it in the console you need to do:
new Function("console.log(1)//@ sourceURL=test1.js")();
I think this behaves correctly, even if there is a slight difference between Blink and WebKit.
Do you see this working in real life once the functions get called?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list