main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
454 bytes
|
Rev | Line | |
---|
[d24f17c] | 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.