Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/seal/15.2.3.8-2-a-15.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: 15.2.3.8-2-a-15
6 description: >
7 Object.seal - 'P' is own property of an Arguments object which
8 implements its own [[GetOwnProperty]]
9 includes: [propertyHelper.js]
10 ---*/
11
12 var obj = (function() {
13 return arguments;
14 })();
15
16 obj.foo = 10;
17
18 assert(Object.isExtensible(obj));
19 Object.seal(obj);
20
21 verifyNotConfigurable(obj, "foo");
22 assert.sameValue(obj.foo, 10);