1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
4 * Any copyright is dedicated to the Public Domain.
5 * http://creativecommons.org/licenses/publicdomain/
9 * Simple assignment expressions in strict mode code must not be
10 * assignments to 'eval' or 'arguments'.
12 assertEq(testLenientAndStrict('arguments=1',
14 parseRaisesException(SyntaxError)),
16 assertEq(testLenientAndStrict('eval=1',
18 parseRaisesException(SyntaxError)),
20 assertEq(testLenientAndStrict('(arguments)=1',
22 parseRaisesException(SyntaxError)),
24 assertEq(testLenientAndStrict('(eval)=1',
26 parseRaisesException(SyntaxError)),
29 reportCompare(true, true);
31 var successfullyParsed = true;