Index: src/runtime/runtime-proxy.cc |
diff --git a/src/runtime/runtime-proxy.cc b/src/runtime/runtime-proxy.cc |
index b577d5f6c1d4ae0e5360feb8660fef19108bb648..2f4c176089e43991bf8c26a29ac6c974e014b981 100644 |
--- a/src/runtime/runtime-proxy.cc |
+++ b/src/runtime/runtime-proxy.cc |
@@ -65,5 +65,14 @@ RUNTIME_FUNCTION(Runtime_GetConstructTrap) { |
return proxy->construct_trap(); |
} |
+ |
+RUNTIME_FUNCTION(Runtime_RevokeProxy) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSProxy, proxy, 0); |
+ return *JSProxy::Revoke(proxy); |
+} |
+ |
+ |
} // namespace internal |
} // namespace v8 |