[Webkit-unassigned] [Bug 111889] Web Inspector: Error handling for ScriptPreprocessor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 20 17:05:35 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=111889





--- Comment #25 from johnjbarton <johnjbarton at chromium.org>  2013-03-20 17:08:00 PST ---
I worked with this patch today. I was able to use some of the error messages to fix some of my problems. 

The remaining problem is related to how the Inspector works. If the preprocessor returns a results with a syntax error, then the browser's JS compiler never sees the //@ sourceURL. So the compilation is associated with the original source URL but we don't get line numbers (I guess because the compiler sees no name at all). The result is confusing: an error message against the original source which has no error. 

(This case is more common than you might think because it just means the preprocessor returned a string that is not JS).

Somehow the preprocessor output is not registered with the Inspector in this case.

(I also hit a problem not directly related to error processing: Inspector evaluations also pass thru the preprocessor (surprise!). My transcoder did not deal with "with" at top level, so I ended up in the case above.)

-- 
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