mirror of https://github.com/tc39/test262.git
Changed two files to use verifyProperty.
This commit is contained in:
parent
435a89b702
commit
e612296c41
|
@ -13,11 +13,9 @@ includes: [propertyHelper.js]
|
|||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(AsyncDisposableStack.prototype, 'disposed');
|
||||
|
||||
assert.sameValue(
|
||||
descriptor.get.length, 0,
|
||||
'The value of `AsyncDisposableStack.prototype.disposed` is `0`'
|
||||
);
|
||||
|
||||
verifyNotEnumerable(descriptor.get, 'length');
|
||||
verifyNotWritable(descriptor.get, 'length');
|
||||
verifyConfigurable(descriptor.get, 'length');
|
||||
verifyProperty(descriptor.get, 'length', {
|
||||
value: 0;
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
|
|
@ -13,11 +13,9 @@ includes: [propertyHelper.js]
|
|||
|
||||
var descriptor = Object.getOwnPropertyDescriptor(DisposableStack.prototype, 'disposed');
|
||||
|
||||
assert.sameValue(
|
||||
descriptor.get.length, 0,
|
||||
'The value of `DisposableStack.prototype.disposed.length` is `0`'
|
||||
);
|
||||
|
||||
verifyNotEnumerable(descriptor.get, 'length');
|
||||
verifyNotWritable(descriptor.get, 'length');
|
||||
verifyConfigurable(descriptor.get, 'length');
|
||||
verifyProperty(descriptor.get, 'length', {
|
||||
value: 0,
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue