Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.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.3-2-3
6 description: Object.getOwnPropertyDescriptor - argument 'P' is undefined
7 ---*/
8
9 var obj = {
10 "undefined": 1
11 };
12
13 var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);
14 var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined");
15
16 assert.sameValue(desc1.value, 1, 'desc1.value');
17 assert.sameValue(desc2.value, 1, 'desc2.value');