tests/auto/qml/ecmascripttests/test262/test/language/literals/string/7.8.4-1-s.js
raw| 1 | // Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es5id: 7.8.4-1-s |
| 6 | description: > |
| 7 | A directive preceeding an 'use strict' directive may not contain |
| 8 | an OctalEscapeSequence |
| 9 | ---*/ |
| 10 | |
| 11 | |
| 12 | assert.throws(SyntaxError, function() { |
| 13 | eval(' "asterisk: \\052" /* octal escape sequences forbidden in strict mode*/ ; "use strict";'); |
| 14 | }); |