turn internalRemap into a null inherited object, fixes a nasty bug where module import live bindings would return a function if they referenced a method on Object.prototype (eg. toString)

This commit is contained in:
Sebastian McKenzie
2015-04-03 23:10:09 +11:00
parent 76d0fb4ba6
commit d64c2c0c45
3 changed files with 12 additions and 1 deletions

View File

@@ -106,12 +106,12 @@ var exportsVisitor = traverse.explode({
export default class DefaultFormatter {
constructor(file) {
this.internalRemap = {};
this.defaultIds = object();
this.scope = file.scope;
this.file = file;
this.ids = object();
this.internalRemap = object();
this.hasNonDefaultExports = false;