Fix: Broken test: language/global-code/decl-lex-configurable-global.js. Closes gh-2897

This commit is contained in:
Rick Waldron 2020-11-13 11:10:48 -05:00
parent df1bce9c2e
commit e1bfbbfdc8
1 changed files with 6 additions and 5 deletions

View File

@ -19,14 +19,15 @@ info: |
1. Perform ? envRec.CreateImmutableBinding(dn, true). 1. Perform ? envRec.CreateImmutableBinding(dn, true).
ii. Else, ii. Else,
1. Perform ? envRec.CreateMutableBinding(dn, false). 1. Perform ? envRec.CreateMutableBinding(dn, false).
includes: [propertyHelper.js]
---*/ ---*/
let Array; let Array;
assert.sameValue(Array, undefined); assert.sameValue(Array, undefined);
assert.sameValue(typeof this.Array, 'function'); assert.sameValue(typeof this.Array, 'function');
verifyNotEnumerable(this, 'Array');
verifyWritable(this, 'Array'); // DO NOT USE propertyHelper API!
verifyConfigurable(this, 'Array'); let descriptor = Object.getOwnPropertyDescriptor(this, 'Array');
assert.sameValue(descriptor.configurable, true);
assert.sameValue(descriptor.enumerable, false);
assert.sameValue(descriptor.writable, true);