In firefox the final comma in the object "pt" doesn't prevent the script from being parsed, but in Safari it does.
Created attachment 5469 [details] Patch and test case
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.
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
Comment on attachment 5469 [details] Patch and test case r=me