| Index: src/asmjs/asm-typer.cc
|
| diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc
|
| index 255d2ee029719878fd3aac5a2b3f9352baa96095..20b8d96053d31477ff81d9e9e54a8daa035706e1 100644
|
| --- a/src/asmjs/asm-typer.cc
|
| +++ b/src/asmjs/asm-typer.cc
|
| @@ -605,8 +605,10 @@ AsmType* AsmTyper::ValidateModule(FunctionLiteral* fun) {
|
| if (estatement != nullptr) {
|
| Assignment* assignment = estatement->expression()->AsAssignment();
|
| if (assignment != nullptr && assignment->target()->IsVariableProxy() &&
|
| - assignment->target()->AsVariableProxy()->var()->mode() ==
|
| - CONST_LEGACY) {
|
| + assignment->target()
|
| + ->AsVariableProxy()
|
| + ->var()
|
| + ->is_sloppy_function_name()) {
|
| use_asm_directive = iter.Next();
|
| }
|
| }
|
|
|