main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
596 bytes
|
Line | |
---|
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 |
|
---|
6 | var ArrayBufferPrototype = ArrayBuffer.prototype;
|
---|
7 |
|
---|
8 | // `ArrayBuffer.prototype.detached` getter
|
---|
9 | // https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.detached
|
---|
10 | if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {
|
---|
11 | defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {
|
---|
12 | configurable: true,
|
---|
13 | get: function detached() {
|
---|
14 | return isDetached(this);
|
---|
15 | }
|
---|
16 | });
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.