diff --git a/src/symbol.js b/src/symbol.js index 26cdc4d..a1d316b 100644 --- a/src/symbol.js +++ b/src/symbol.js @@ -49,11 +49,13 @@ if (typeof FEATURE_NO_ES2015 === 'undefined') { }, createWithSymbols = function (proto, descriptors) { var self = create(proto); - gOPN(descriptors).forEach(function (key) { - if (propertyIsEnumerable.call(descriptors, key)) { - $defineProperty(self, key, descriptors[key]); - } - }); + if (descriptors !== null && typeof descriptors === 'object') { + gOPN(descriptors).forEach(function (key) { + if (propertyIsEnumerable.call(descriptors, key)) { + $defineProperty(self, key, descriptors[key]); + } + }); + } return self; }, copyAsNonEnumerable = function (descriptor) {