Ron Buckton 3a615a0c0e Adds property descriptor tests for explicit resource management objects
These are all the prop-desc.js tests from @rbuckton's PR #3866 to make reviewing easier.
2024-07-29 16:31:26 -07:00

18 lines
610 B
JavaScript

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: pending
description: >
`Symbol.asyncDispose` property descriptor
info: |
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [explicit-resource-management]
---*/
assert.sameValue(typeof Symbol.asyncDispose, 'symbol');
verifyNotEnumerable(Symbol, 'asyncDispose');
verifyNotWritable(Symbol, 'asyncDispose');
verifyNotConfigurable(Symbol, 'asyncDispose');