Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index dd17621d83c9df9efb30916145f2e1360b7c0efb..00e304bbcb76edd7b89d4408b720cd434c9b2161 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -833,7 +833,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
// Skip extra assignment inserted by the parser when in this form: |
// (function Module(a, b, c) {... }) |
if (expr->target()->IsVariableProxy() && |
- expr->target()->AsVariableProxy()->var()->mode() == CONST_LEGACY) { |
+ expr->target()->AsVariableProxy()->var()->is_sloppy_function_name()) { |
return; |
} |
Property* prop = expr->value()->AsProperty(); |