blob: 2a3ede67f09583f21c3bfea02d7ed1f5f6e3a6ab [file] [log] [blame]
Make sure that we correctly identify parse errors in object literals
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS ({a:1, get a(){}}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({a:1, set a(){}}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({get a(){}, a:1}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({set a(){}, a:1}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({get a(){}, get a(){}}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({set a(){}, set a(){}}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({set a(){}, get a(){}, set a(){}}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({a:1, get a(){}})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({a:1, set a(){}})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({get a(){}, a:1})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({set a(){}, a:1})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({get a(){}, get a(){}})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({set a(){}, set a(){}})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS (function(){({set a(){}, get a(){}, set a(){}})}) threw exception SyntaxError: Attempted to redefine property 'a'..
PASS ({a:1, a:1, a:1}), true is true
PASS ({get a(){}, set a(){}}), true is true
PASS ({set a(){}, get a(){}}), true is true
PASS (function(){({a:1, a:1, a:1})}), true is true
PASS (function(){({get a(){}, set a(){}})}), true is true
PASS (function(){({set a(){}, get a(){}})}), true is true
PASS successfullyParsed is true
TEST COMPLETE