Works fine for me:
Error
at c (foo.js:12:37)
at b (foo.js:8:8)
at a (foo.js:4:8)
at foo (foo.js:14:4)
at foo.js:15:2
at eval (native)
at file:///D:/html/source-url.html:19:8
console.trace doesn't take this sourceURL into account though, but
it's a different issue related to the different paths of stack traces
in console.trace/uncaught exception/Error.stackTrace
-yury
On Mon, Sep 20, 2010 at 8:34 PM, <[email protected]> wrote:
> I don't see it working for the following change:
>
> <html>
> <script>
> function foo() {
>
> function a() {
> b();
> }
>
> function b() {
> c();
> }
>
> function c() {
> console.trace(); console.log(new Error().stack); as
> }
> a();
> }
>
> window.eval("(" + foo.toString() + ")(); //@ sourceURL=foo.js");
> </script>
> </html>
>
> http://codereview.chromium.org/3444011/show
>
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev