Node-Red configuration
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.

array-buffer-non-extensible.js 454B

1234567891011
  1. 'use strict';
  2. // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
  3. var fails = require('../internals/fails');
  4. module.exports = fails(function () {
  5. if (typeof ArrayBuffer == 'function') {
  6. var buffer = new ArrayBuffer(8);
  7. // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
  8. if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
  9. }
  10. });