зеркало из https://github.com/mozilla/pjs.git
1b4079d0c1
The attached patch adds support for debugging eval and Function code transparently. It changes omj.NativeGlobal and omj.BaseFunction to embed line number of origin of eval and Function scripts into source name and pass 1 as base line for script code. In this way a debugger implementation can treat eval and Function code in the same way as scripts loaded from some url while giving more information about error location in case of an error in eval code as the error source would contain both line number of eval origin and line number in eval code itself. I chose to embed line numbers via patterns like sourcefile#<line-number>(eval) sourcefile#<line-number>(Function) just to be able to to pass the constructed name to URL constructor if the original sourcefile is a valid URL but it is pretty arbitrary. |
||
---|---|---|
.. | ||
org/mozilla/javascript/tools | ||
build.xml |