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.

es.array-buffer.detached.js 486B

123456789101112131415
  1. 'use strict';
  2. var DESCRIPTORS = require('../internals/descriptors');
  3. var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
  4. var isDetached = require('../internals/array-buffer-is-detached');
  5. var ArrayBufferPrototype = ArrayBuffer.prototype;
  6. if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {
  7. defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {
  8. configurable: true,
  9. get: function detached() {
  10. return isDetached(this);
  11. }
  12. });
  13. }