In strict mode, an object literal with a getter and setter for the same property will cause WebKit to raise a syntax error. This should be valid, but raises a syntax error due to the presence of the setter: 'use strict'; var o = { get x () {}, set x () {} }; Changing the property name for either getter or setter will eliminate the syntax error. This behavior does not seem to follow ยง11.1.5.
Whoops, I think i left in a piece of code from when i was debugging. Need to verify but the fix is trivial. Please CC me on any other strict mode bugs that you find.
Created attachment 91879 [details] Patch
Committed r85455: <http://trac.webkit.org/changeset/85455>