Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium HW-All TurboFan

New issue 3995 by [email protected]: Compilers disagree about source position of "throw new Error()"
https://code.google.com/p/v8/issues/detail?id=3995

The optimizing compiler and full-codegen disagree about the location associated with the exception message for a "throw new Error()" clause. The full code places is at the "new" location, whereas both Crankshaft and TurboFan place it at the "throw" location.

$ ./out/ia32.debug/d8 -e --allow-natives-syntax "function f() { throw new Error(); } f();"
unnamed:1: Error
function f() { throw new Error(); } f();
                     ^
Error
    at f (unnamed:1:22)
    at unnamed:1:37

$ ./out/ia32.debug/d8 -e --allow-natives-syntax "function f() { throw new Error(); } %OptimizeFunctionOnNextCall(f); f();"
unnamed:1: Error
function f() { throw new Error(); } %OptimizeFunctionOnNextCall(f); f();
               ^
Error
    at f (unnamed:1:22)
    at unnamed:1:69


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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

Reply via email to