Bug 19800 - Exception given wrong line number
Summary: Exception given wrong line number
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://kevlindev.com/alife/lsystems/l...
Depends on:
Reported: 2008-06-28 03:46 PDT by Oliver Hunt
Modified: 2012-03-08 17:59 PST (History)
5 users (show)

See Also:

Reduction (349 bytes, image/svg+xml)
2009-04-20 21:13 PDT, Cameron Zwarich (cpst)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2008-06-28 03:46:13 PDT
The referenced page reports an exception at line 83, when it actually happens at line 69
Comment 1 Cameron Zwarich (cpst) 2009-04-20 21:13:11 PDT
Created attachment 29639 [details]

Here's a reduction that's off by one line.
Comment 2 Cameron Zwarich (cpst) 2009-04-20 21:22:01 PDT
This off-by-one error occurs because the inspector doesn't include the first line of the document:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

I think Oliver's original example is more complicated than this.
Comment 3 Gavin Barraclough 2012-03-08 17:59:27 PST
Works for me in ToT, please reopen if you can still reproduce a problem.