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

@@ -0,0 +1,2 @@
import toString from "foo";
toString;

View File

@@ -0,0 +1,9 @@
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _toString = require("foo");
var toString = _interopRequire(_toString);
toString;