Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-2-14.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.7-2-14
6 description: Object.defineProperties - argument 'Properties' is the JSON object
7 ---*/
8
9 var obj = {};
10 var result = false;
11
12 Object.defineProperty(JSON, "prop", {
13 get: function() {
14 result = (this === JSON);
15 return {};
16 },
17 enumerable: true,
18 configurable: true
19 });
20
21 Object.defineProperties(obj, JSON);
22
23 assert(result, 'result !== true');