1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_3/LexicalConventions/7.8.3-01.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +/* 1.5 + * Any copyright is dedicated to the Public Domain. 1.6 + * http://creativecommons.org/licenses/publicdomain/ 1.7 + */ 1.8 + 1.9 +var BUGNUMBER = 523401; 1.10 +var summary = 'identifier starts immediately after numeric literal'; 1.11 +var expect = "SyntaxError: identifier starts immediately after numeric literal"; 1.12 +var actual; 1.13 + 1.14 +printBugNumber(BUGNUMBER); 1.15 +printStatus(summary); 1.16 + 1.17 +try { 1.18 + eval("actual = 0in [1]"); 1.19 +} catch (e) { 1.20 + actual = e; 1.21 +} 1.22 +actual = '' + actual; 1.23 + 1.24 +reportCompare(expect, actual, summary); 1.25 + 1.26 +printStatus("All tests passed!");