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 * Prefix decrement expressions must not have 'eval' or 'arguments' as
12 assertEq(testLenientAndStrict('--arguments',
14 parseRaisesException(SyntaxError)),
16 assertEq(testLenientAndStrict('--eval',
18 parseRaisesException(SyntaxError)),
20 assertEq(testLenientAndStrict('--(arguments)',
22 parseRaisesException(SyntaxError)),
24 assertEq(testLenientAndStrict('--(eval)',
26 parseRaisesException(SyntaxError)),
29 reportCompare(true, true);
31 var successfullyParsed = true;