Revert "make export { foo as default }; trigger common interop"

This reverts commit 07c7b5b419.
This commit is contained in:
Sebastian McKenzie
2015-02-07 19:40:49 +11:00
parent 6a5adfe338
commit e06aac4783
3 changed files with 2 additions and 13 deletions

View File

@@ -760,7 +760,7 @@ t.getSpecifierId = function (specifier) {
*/
t.isSpecifierDefault = function (specifier) {
return specifier.default || t.isIdentifier(specifier.id, { name: "default" });
return specifier.default || t.isIdentifier(specifier.id) && specifier.id.name === "default";
};
toFastProperties(t);