Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index c281bf5c1cd8bf277f600723ff5cf8731ccfaa97..ee8e87de07788cb06463d9ab3c842d00d9e24b99 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -159,6 +159,7 @@ void WebAssemblyValidate(const v8::FunctionCallbackInfo<v8::Value>& args) { |
if (ValidateModule(isolate, args[0], &thrower)) { |
return_value.Set(v8::True(isolate)); |
} else { |
+ if (thrower.wasm_error()) thrower.Reify(); // Clear error. |
return_value.Set(v8::False(isolate)); |
} |
} |