Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/prefix-increment/11.4.4-2-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: 11.4.4-2-1-s
6 description: Strict Mode - SyntaxError is thrown for ++eval
7 flags: [onlyStrict]
8 ---*/
9
10 var blah = eval;
11 assert.throws(SyntaxError, function() {
12 eval("++eval;");
13 });
14 assert.sameValue(blah, eval, 'blah');