Index: src/isolate-inl.h |
diff --git a/src/isolate-inl.h b/src/isolate-inl.h |
index ed246be75cd6cf54c3b86f0ded95b86cb73c48cf..34c98bba645a5a44253689b954abc9370b550209 100644 |
--- a/src/isolate-inl.h |
+++ b/src/isolate-inl.h |
@@ -76,6 +76,11 @@ bool Isolate::is_catchable_by_javascript(Object* exception) { |
return exception != heap()->termination_exception(); |
} |
+bool Isolate::is_catchable_by_wasm(Object* exception) { |
+ return is_catchable_by_javascript(exception) && |
+ (exception->IsNumber() || exception->IsSmi()); |
+} |
+ |
void Isolate::FireBeforeCallEnteredCallback() { |
for (int i = 0; i < before_call_entered_callbacks_.length(); i++) { |
before_call_entered_callbacks_.at(i)(reinterpret_cast<v8::Isolate*>(this)); |