tests/auto/qml/ecmascripttests/test262/test/language/literals/string/7.8.4-7-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-7-s |
| 6 | description: An OctalEscapeSequence is not allowed in a String under Strict Mode |
| 7 | flags: [onlyStrict] |
| 8 | ---*/ |
| 9 | |
| 10 | |
| 11 | assert.throws(SyntaxError, function() { |
| 12 | eval('var x = "a\\03z";'); |
| 13 | }); |