test262/test/built-ins/Reflect/getOwnPropertyDescriptor/name.js

24 lines
784 B
JavaScript

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.7
description: >
Reflect.getOwnPropertyDescriptor.name value and property descriptor
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [Reflect]
---*/
assert.sameValue(
Reflect.getOwnPropertyDescriptor.name, 'getOwnPropertyDescriptor',
'The value of `Reflect.getOwnPropertyDescriptor.name` is `"getOwnPropertyDescriptor"`'
);
verifyNotEnumerable(Reflect.getOwnPropertyDescriptor, 'name');
verifyNotWritable(Reflect.getOwnPropertyDescriptor, 'name');
verifyConfigurable(Reflect.getOwnPropertyDescriptor, 'name');