2014-07-22 01:09:02 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
2015-07-17 17:42:45 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
2014-07-22 01:09:02 +02:00
|
|
|
|
|
|
|
/*---
|
|
|
|
info: >
|
|
|
|
Refer 11.1.5;
|
|
|
|
The production
|
|
|
|
PropertyAssignment : get PropertyName ( ) { FunctionBody }
|
|
|
|
3.Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: true, [[Configurable]]: true}
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 11.1.5_6-3-1
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Object literal - property descriptor for get property assignment
|
|
|
|
---*/
|
|
|
|
|
2014-08-05 17:38:52 +02:00
|
|
|
var o;
|
|
|
|
eval("o = {get foo(){return 1;}};");
|
2014-07-22 01:09:02 +02:00
|
|
|
var desc = Object.getOwnPropertyDescriptor(o,"foo");
|
2015-08-06 18:31:44 +02:00
|
|
|
|
|
|
|
assert.sameValue(desc.enumerable, true, 'desc.enumerable');
|
|
|
|
assert.sameValue(desc.configurable, true, 'desc.configurable');
|