All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.array-buffer-non-extensible.js Maven / Gradle / Ivy

There is a newer version: 3.39.0
Show newest version
'use strict';
// 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/no-object-isextensible, es/no-object-defineproperty -- safe
    if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
  }
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy