Bug 19800

Summary: Exception given wrong line number
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: barraclough, ggaren, mjs, sam, zwarich
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://kevlindev.com/alife/lsystems/lsystems.svg
Attachments:
Description Flags
Reduction none

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]
Reduction

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.