mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
262 B
18 lines
262 B
12 years ago
|
/*
|
||
|
* Numeric property access.
|
||
|
*/
|
||
|
|
||
|
/*===
|
||
|
SyntaxError
|
||
|
===*/
|
||
|
|
||
|
try {
|
||
|
/* Note: "x.5" should apparently be parsed as the two tokens
|
||
|
* "x" (identifier) and ".5" (decimal number)
|
||
|
*/
|
||
|
eval("x={5:6}; print(x.5);");
|
||
|
} catch (e) {
|
||
|
print (e.name);
|
||
|
}
|
||
|
|