Projekt

Obecné

Profil

Stáhnout (510 Bajtů) Statistiky
| Větev: | Revize:
1
'use strict';
2

    
3
var GetIntrinsic = require('../GetIntrinsic');
4

    
5
var $Object = GetIntrinsic('%Object%');
6

    
7
var isPrimitive = require('../helpers/isPrimitive');
8

    
9
var $preventExtensions = $Object.preventExtensions;
10
var $isExtensible = $Object.isExtensible;
11

    
12
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
13

    
14
module.exports = $preventExtensions
15
	? function IsExtensible(obj) {
16
		return !isPrimitive(obj) && $isExtensible(obj);
17
	}
18
	: function IsExtensible(obj) {
19
		return !isPrimitive(obj);
20
	};
(41-41/109)