Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index c499e3a70abaa90e77f6f5c6dc2454e9b5fc8e96..5846881f90ad5b68505a000753d8fd2f7324ce5f 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -1110,6 +1110,15 @@ RUNTIME_FUNCTION(Runtime_RegExpExecMultiple) { |
} |
+RUNTIME_FUNCTION(Runtime_RegExpExecReThrow) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 4); |
+ Object* exception = isolate->pending_exception(); |
+ isolate->clear_pending_exception(); |
+ return isolate->ReThrow(exception); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_IsRegExp) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 1); |