Index: src/asmjs/asm-typer.cc |
diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc |
index 88879ab84d4a190c6954bcecdf41e1543d521e1d..01c8caed6e1eb2c0a8988f0c65a4d29d4a125f52 100644 |
--- a/src/asmjs/asm-typer.cc |
+++ b/src/asmjs/asm-typer.cc |
@@ -326,6 +326,7 @@ AsmTyper::VariableInfo* AsmTyper::ImportLookup(Property* import) { |
if (i == stdlib->end()) { |
return nullptr; |
} |
+ stdlib_uses_.insert(i->second->standard_member()); |
return i->second; |
} |
@@ -429,7 +430,6 @@ AsmTyper::StandardMember AsmTyper::VariableAsStandardMember(Variable* var) { |
return kNone; |
} |
StandardMember member = var_info->standard_member(); |
- stdlib_uses_.insert(member); |
return member; |
} |