WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
5939
final comma in javascript object prevents parsing
https://bugs.webkit.org/show_bug.cgi?id=5939
Summary
final comma in javascript object prevents parsing
pathall
Reported
2005-12-04 23:27:08 PST
In firefox the final comma in the object "pt" doesn't prevent the script from being parsed, but in Safari it does.
Attachments
Patch and test case
(2.22 KB, patch)
2006-01-03 22:30 PST
,
Ricci Adams
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ricci Adams
Comment 1
2006-01-03 22:30:05 PST
Created
attachment 5469
[details]
Patch and test case
Darin Adler
Comment 2
2006-01-04 13:03:29 PST
Comment on
attachment 5469
[details]
Patch and test case Does adding this rule create any conflicts in the grammar? If not, then we're fine. If so, we should look for a way of fixing things so that there are no conflicts. The way to find out is to build and look for output from bison when compiling the grammar file.
Ricci Adams
Comment 3
2006-01-04 23:43:53 PST
Darin, I do not see any conflicts when bisoning JavaScriptCore/kjs/grammar.y with my patch. However, my grep did turn up conflicts in the CSS parser, which I documented here: http:// bugzilla.opendarwin.org/show_bug.cgi?id=6380
Maciej Stachowiak
Comment 4
2006-01-06 01:49:05 PST
Comment on
attachment 5469
[details]
Patch and test case r=me
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug