summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_3/LexicalConventions/7.8.3-01.js
blob: e323738f04433a2210387020708ebc198dae57d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

var BUGNUMBER = 523401;
var summary = 'identifier starts immediately after numeric literal';
var expect = "SyntaxError: identifier starts immediately after numeric literal";
var actual;

printBugNumber(BUGNUMBER);
printStatus(summary);

try {
    eval("actual = 0in [1]");
} catch (e) {
    actual = e;
}
actual = '' + actual;

reportCompare(expect, actual, summary);

printStatus("All tests passed!");