Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 5e9a9c378ef225cd453cb6e7bf65bb3407c6a593..2db8d03c11aba5c0344dc4064433065a4b42bda4 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -1394,6 +1394,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
current_function_builder_->AddAsmWasmOffset(expr->position()); |
current_function_builder_->Emit(kExprCallIndirect); |
current_function_builder_->EmitVarInt(indices->signature_index); |
+ current_function_builder_->EmitVarInt(0); // table index |
returns_value = |
builder_->GetSignature(indices->signature_index)->return_count() > |
0; |