File: 15.2.3.3-4-178.js

package info (click to toggle)
qt6-declarative 6.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 310,088 kB
  • sloc: cpp: 779,045; javascript: 514,338; xml: 10,981; python: 2,806; ansic: 2,253; java: 954; sh: 262; makefile: 41; php: 27
file content (18 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.3-4-178
description: >
    Object.getOwnPropertyDescriptor returns data desc (all false) for
    properties on built-ins (Global.NaN)
---*/

// in non-strict mode, 'this' is bound to the global object.
var desc = Object.getOwnPropertyDescriptor(this, "NaN");

assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
assert.sameValue(desc.configurable, false, 'desc.configurable');
assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")');
assert.sameValue(desc.hasOwnProperty('set'), false, 'desc.hasOwnProperty("set")');