diff --git a/test/built-ins/AsyncDisposableStack/prototype/disposed/length.js b/test/built-ins/AsyncDisposableStack/prototype/disposed/length.js index 97f092faaa..2741f01e43 100644 --- a/test/built-ins/AsyncDisposableStack/prototype/disposed/length.js +++ b/test/built-ins/AsyncDisposableStack/prototype/disposed/length.js @@ -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 +}); diff --git a/test/built-ins/DisposableStack/prototype/disposed/length.js b/test/built-ins/DisposableStack/prototype/disposed/length.js index cbe73ba489..21d6afc6a5 100644 --- a/test/built-ins/DisposableStack/prototype/disposed/length.js +++ b/test/built-ins/DisposableStack/prototype/disposed/length.js @@ -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 +});