diff --git a/packages/zone.js/lib/browser/define-property.ts b/packages/zone.js/lib/browser/define-property.ts index a053487aac..f7161dc911 100644 --- a/packages/zone.js/lib/browser/define-property.ts +++ b/packages/zone.js/lib/browser/define-property.ts @@ -42,13 +42,13 @@ export function propertyPatch() { return obj; }; - Object.create = function(obj: any, proto: any) { - if (typeof proto === 'object' && !Object.isFrozen(proto)) { - Object.keys(proto).forEach(function(prop) { - proto[prop] = rewriteDescriptor(obj, prop, proto[prop]); + Object.create = function(proto: any, propertiesObject: any) { + if (typeof propertiesObject === 'object' && !Object.isFrozen(propertiesObject)) { + Object.keys(propertiesObject).forEach(function(prop) { + propertiesObject[prop] = rewriteDescriptor(proto, prop, propertiesObject[prop]); }); } - return _create(obj, proto); + return _create(proto, propertiesObject); }; Object.getOwnPropertyDescriptor = function(obj, prop) {