Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-2-16.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-16
6 description: >
7 Object.defineProperties - argument 'Properties' is the Arguments
8 object
9 ---*/
10
11 var obj = {};
12 var result = false;
13
14 var Fun = function() {
15 return arguments;
16 };
17 var props = new Fun();
18
19 Object.defineProperty(props, "prop", {
20 get: function() {
21 result = ('[object Arguments]' === Object.prototype.toString.call(this));
22 return {};
23 },
24 enumerable: true
25 });
26
27 Object.defineProperties(obj, props);
28
29 assert(result, 'result !== true');