Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index d094dbd55c4cf9f20e4ee3caf48bf846333152d5..12e8b3f4bc59554144413b06c70744aa1d9f9627 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6464,17 +6464,11 @@ void Isolate::CancelTerminateExecution() { |
void Isolate::RequestInterrupt(InterruptCallback callback, void* data) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
- isolate->set_api_interrupt_callback(callback); |
- isolate->set_api_interrupt_callback_data(data); |
- isolate->stack_guard()->RequestApiInterrupt(); |
+ isolate->RequestInterrupt(callback, data); |
} |
void Isolate::ClearInterrupt() { |
- i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
- isolate->stack_guard()->ClearApiInterrupt(); |
- isolate->set_api_interrupt_callback(NULL); |
- isolate->set_api_interrupt_callback_data(NULL); |
} |