Exceptions are missing the lineNumber attribute
Reported by
alf...@54.org,
May 27 2016
|
||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Steps to reproduce the problem:
In console paste this code:
try{eval ('//not an error\nIs an error')} catch (e) {console.error('Error on line %i', e.lineNumber)}
What is the expected behavior?
The console should report "Error on line 2"
What went wrong?
Exceptions are missing the lineNumber attribute.
Did this work before? No
Chrome version: 50.0.2661.102 Channel: stable
OS Version: OS X 10.11.5
Flash Version: Shockwave Flash 21.0 r0
This works in Firefox
,
May 27 2016
This is seen on Win4/64 bit & Linux OSX 14.04 Not a regression issue as this is seen on M50 build 50.0.2661.102 as well.
,
May 27 2016
Non-regression as this is seen on Version 49.0.2623.87 (64-bit) as well.
,
May 27 2016
,
May 28 2016
Error.lineNumber is not standard Firefox extension. [1] It's duplicate of issue in V8 bug tracker: https://bugs.chromium.org/p/v8/issues/detail?id=2589. [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/lineNumber |
||||
►
Sign in to add a comment |
||||
Comment 1 by pucchakayala@chromium.org
, May 27 2016206 KB
206 KB View Download