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
273 B
18 lines
273 B
/*===
|
|
63
|
|
SyntaxError
|
|
===*/
|
|
|
|
try {
|
|
print(eval("077"));
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
try {
|
|
// Octal must not be parsed in strict mode code; E5 Section 7.8.3.
|
|
print(eval("(function() { 'use strict'; return 077; })();"));
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
|