Changed two files to use verifyProperty.

This commit is contained in:
Ioanna M. Dimitriou H 2024-07-30 01:15:58 +02:00 committed by Philip Chimento
parent 435a89b702
commit e612296c41
2 changed files with 12 additions and 16 deletions

View File

@ -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
});

View File

@ -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
});