Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2017/InternalizeJSONProperty.js
r0c6b92a r79a0317 10 10 var ToLength = require('./ToLength'); 11 11 var ToString = require('./ToString'); 12 var Type = require('./Type');13 12 14 13 var forEach = require('../helpers/forEach'); 14 var isObject = require('../helpers/isObject'); 15 15 16 16 // https://262.ecma-international.org/8.0/#sec-internalizejsonproperty … … 19 19 20 20 module.exports = function InternalizeJSONProperty(holder, name, reviver) { 21 if ( Type(holder) !== 'Object') {21 if (!isObject(holder)) { 22 22 throw new $TypeError('Assertion failed: `holder` is not an Object'); 23 23 } … … 31 31 var val = Get(holder, name); // step 1 32 32 33 if ( Type(val) === 'Object') { // step 233 if (isObject(val)) { // step 2 34 34 var isArray = IsArray(val); // step 2.a 35 35 if (isArray) { // step 2.b
Note:
See TracChangeset
for help on using the changeset viewer.