You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
444 B
11 lines
444 B
2 years ago
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
||
|
var fails = require('../internals/fails');
|
||
|
|
||
|
module.exports = fails(function () {
|
||
|
if (typeof ArrayBuffer == 'function') {
|
||
|
var buffer = new ArrayBuffer(8);
|
||
|
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe
|
||
|
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
|
||
|
}
|
||
|
});
|