Status: Accepted Owner: [email protected] Labels: Type-Bug Priority-Medium
New issue 1318 by [email protected]: Exception location incorrect when using ? : within exception constructor argument list
http://code.google.com/p/v8/issues/detail?id=1318 function f(a) { throw new SyntaxError( a ? "true" : "false" ); } f(1); x.js:6: SyntaxError: true : "false" ^ SyntaxError: true at f (x.js:6:8) at x.js:9:1 If the ? : is lifted into a function: function lift(a) { return a ? "true" : "false"; } function f(a) { throw new SyntaxError( lift(a) ); } f(1); Result is: x.js:8: SyntaxError: true throw new SyntaxError( ^ SyntaxError: true at f (x.js:8:9) at x.js:12:1 -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
