New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 615469 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue v8:2589
Owner:
Last visit > 30 days ago
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

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
 
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac OSX 10.11.5 - 51.0.2704.63

Please find the attached screen shot. I have placed FF & Chrome version comparison in the screen shot.
Screen Shot 2016-05-27 at 4.21.33 PM.png
206 KB View Download
Components: Platform>DevTools>JavaScript
Labels: OS-Linux OS-Windows
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.
Non-regression as this is seen on Version 49.0.2623.87 (64-bit) as well.
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Untriaged)
Mergedinto: v8:2589
Status: Duplicate (was: Assigned)
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