summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js
blob: 3adfe4f2de0ad08bcbbdc469a08ae54c37827b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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-188
description: >
    Object.getOwnPropertyDescriptor returns undefined for non-existent
    properties on built-ins (Function (instance).name)
---*/

var f = Function('return 42;');
var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist");

assert.sameValue(desc, undefined, 'desc');

reportCompare(0, 0);