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/
8 assertEq(testLenientAndStrict('var eval;',
10 parseRaisesException(SyntaxError)),
12 assertEq(testLenientAndStrict('var x,eval;',
14 parseRaisesException(SyntaxError)),
16 assertEq(testLenientAndStrict('var arguments;',
18 parseRaisesException(SyntaxError)),
20 assertEq(testLenientAndStrict('var x,arguments;',
22 parseRaisesException(SyntaxError)),
25 reportCompare(true, true);
27 var successfullyParsed = true;