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 /* Octal integer literal at top level. */
9 assertEq(testLenientAndStrict('010',
11 parseRaisesException(SyntaxError
)),
14 /* Octal integer literal in strict function body */
15 assertEq(parseRaisesException(SyntaxError
)
16 ('function f() { "use strict"; 010; }'),
21 * Octal integer literal after strict function body (restoration of
24 assertEq(parsesSuccessfully('function f() { "use strict"; }; 010'),
27 /* Octal integer literal in function body */
28 assertEq(parsesSuccessfully('function f() { 010; }'),
31 reportCompare(true, true);
33 var successfullyParsed
= true;