Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/11.13.1-4-6-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.13.1-4-6-s
6 description: >
7 simple assignment throws TypeError if LeftHandSide is a readonly
8 property in strict mode (Function.length)
9 flags: [onlyStrict]
10 ---*/
11
12
13 assert.throws(TypeError, function() {
14 Function.length = 42;
15 });