Bug 57293 - ES5 Strict mode causes exception line numbers to be reported incorrectly
Summary: ES5 Strict mode causes exception line numbers to be reported incorrectly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.6
: P2 Normal
Assignee: Oliver Hunt
URL: http://static.ryanberdeen.com/share/l...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 19:30 PDT by Ryan Berdeen
Modified: 2011-05-02 08:10 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Berdeen 2011-03-28 19:30:04 PDT
If a script block or file has 'use strict'; as the first line, SyntaxErrors and runtime exceptions will report incorrect line numbers.

In the URL I've linked, the syntax error is on line 8, but is reported on line 14.
Comment 1 Oliver Hunt 2011-05-01 20:01:07 PDT
Whoops, I know what's happening here.
Comment 2 Oliver Hunt 2011-05-02 08:10:08 PDT
Committed r85456: <http://trac.webkit.org/changeset/85456>