Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/eval/length-non-writable.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The length property of eval has the attribute ReadOnly
6 es5id: 15.1.2.1_A4.3
7 es6id: 18.2.1
8 esid: sec-eval-x
9 description: Checking if varying the length property fails
10 includes: [propertyHelper.js]
11 ---*/
12
13 //CHECK#1
14 var x = eval.length;
15 verifyNotWritable(eval, "length", null, Infinity);
16 if (eval.length !== x) {
17 $ERROR('#1: x = eval.length; eval.length = Infinity; eval.length === x. Actual: ' + (eval.length));
18 }