Index: src/wasm/wasm-result.h |
diff --git a/src/wasm/wasm-result.h b/src/wasm/wasm-result.h |
index 2454c03bdc0625c374a6ea6af2ef4804095c824f..004ac22d330b0809b0df95b979bd7df5a714d776 100644 |
--- a/src/wasm/wasm-result.h |
+++ b/src/wasm/wasm-result.h |
@@ -112,6 +112,7 @@ class V8_EXPORT_PRIVATE ErrorThrower { |
} |
bool error() const { return !exception_.is_null(); } |
+ bool wasm_error() { return wasm_error_; } |
private: |
void Format(i::Handle<i::JSFunction> constructor, const char* fmt, va_list); |
@@ -119,6 +120,7 @@ class V8_EXPORT_PRIVATE ErrorThrower { |
i::Isolate* isolate_; |
const char* context_; |
i::Handle<i::Object> exception_; |
+ bool wasm_error_ = false; |
titzer
2017/01/20 12:03:55
Thinking of a better name for this. Looks like it
rossberg
2017/01/20 12:17:22
Nah, it's set only for {Compile,Link,Runtime}Error
|
}; |
} // namespace wasm |
} // namespace internal |