diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/ArrayBuffer/prototype/resize/extensible.js')
-rw-r--r-- | js/src/tests/test262/built-ins/ArrayBuffer/prototype/resize/extensible.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/resize/extensible.js b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/resize/extensible.js new file mode 100644 index 0000000000..8c4323e6df --- /dev/null +++ b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/resize/extensible.js @@ -0,0 +1,18 @@ +// |reftest| shell-option(--enable-arraybuffer-resizable) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options +// Copyright (C) 2021 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-arraybuffer.prototype.resize +description: ArrayBuffer.prototype.resize is extensible. +info: | + ArrayBuffer.prototype.resize ( newLength ) + + 17 ECMAScript Standard Built-in Objects: + Unless specified otherwise, the [[Extensible]] internal slot + of a built-in object initially has the value true. +features: [resizable-arraybuffer] +---*/ + +assert(Object.isExtensible(ArrayBuffer.prototype.resize)); + +reportCompare(0, 0); |