Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: do not reconfig property descriptors of prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Jun 12, 2014
1 parent 330b112 commit e9dfbed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ Zone.patchDefineProperty = function () {
if (isUnconfigurable(obj, prop)) {
throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj);
}
desc = rewriteDescriptor(obj, prop, desc);
if (prop !== 'prototype') {
desc = rewriteDescriptor(obj, prop, desc);
}
return _defineProperty(obj, prop, desc);
};

Expand Down

0 comments on commit e9dfbed

Please sign in to comment.