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('"\\010"',
10 parseRaisesException(SyntaxError)),
13 assertEq(testLenientAndStrict('"\\00"',
15 parseRaisesException(SyntaxError)),
18 assertEq(testLenientAndStrict('"\\1"',
20 parseRaisesException(SyntaxError)),
23 assertEq(testLenientAndStrict('"\\08"',
25 parseRaisesException(SyntaxError)),
28 assertEq(testLenientAndStrict('"\\0"',
33 assertEq(testLenientAndStrict('"\\0x"',
38 reportCompare(true, true);
40 var successfullyParsed = true;