| Index: test/mjsunit/strict-mode.js
|
| diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js
|
| index 924b34f936c274684e0e3cc2921b2563fb76aa05..83a22cc1f661cb1abb0426f991b46f40deb8331d 100644
|
| --- a/test/mjsunit/strict-mode.js
|
| +++ b/test/mjsunit/strict-mode.js
|
| @@ -115,3 +115,17 @@ function NotStrict(eval) {
|
| }
|
| with ({}) {};
|
| }
|
| +
|
| +// Octal literal
|
| +CheckStrictMode("var x = 012");
|
| +CheckStrictMode("012");
|
| +CheckStrictMode("'Hello octal\\032'");
|
| +CheckStrictMode("function octal() { return 012; }");
|
| +CheckStrictMode("function octal() { return '\\032'; }");
|
| +
|
| +// Octal before "use strict"
|
| +assertThrows('\
|
| + function strict() {\
|
| + "octal\\032directive";\
|
| + "use strict";\
|
| + }', SyntaxError);
|
|
|