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

cfx-js integration work #578

Closed
wants to merge 9 commits into from
8 changes: 6 additions & 2 deletions lib/sdk/core/heritage.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ var Class = new function() {
function constructor() {
return apply(prototype.constructor, create(prototype), arguments);
}
constructor.prototype = prototype;
return freeze(constructor);
Object.defineProperty(constructor, 'prototype', {
configurable: false,
writable: false,
value: prototype
});
return constructor;
};
}
Class.prototype = extend(null, obscure({
Expand Down
Loading