Skip to content

Commit

Permalink
fixup! refactor: Rename imported symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Mar 25, 2020
1 parent 64123cc commit e3ace27
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 126 deletions.
4 changes: 2 additions & 2 deletions lib/constructs/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class Interface {
generateExport() {
this.str += `
exports.is = function is(obj) {
return utils.isObject(obj) && utils.hasOwn(obj, impl) && obj[implSymbol] instanceof Impl.implementation;
return utils.isObject(obj) && utils.hasOwn(obj, implSymbol) && obj[implSymbol] instanceof Impl.implementation;
};
exports.isImpl = function isImpl(obj) {
return utils.isObject(obj) && obj instanceof Impl.implementation;
Expand Down Expand Up @@ -1144,7 +1144,7 @@ class Interface {
privateData.wrapper = obj;
exports._internalSetup(obj, globalObject);
Object.defineProperty(obj, impl, {
Object.defineProperty(obj, implSymbol, {
value: new Impl.implementation(globalObject, constructorArgs, privateData),
configurable: true
});
Expand Down
Loading

0 comments on commit e3ace27

Please sign in to comment.