main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
454 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
---|
3 | var fails = require('../internals/fails');
|
---|
4 |
|
---|
5 | module.exports = fails(function () {
|
---|
6 | if (typeof ArrayBuffer == 'function') {
|
---|
7 | var buffer = new ArrayBuffer(8);
|
---|
8 | // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
---|
9 | if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
|
---|
10 | }
|
---|
11 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.