Index: src/runtime/runtime-proxy.cc |
diff --git a/src/runtime/runtime-proxy.cc b/src/runtime/runtime-proxy.cc |
index b577d5f6c1d4ae0e5360feb8660fef19108bb648..1640f5789acbc89ce8caced62bd44df37372db7c 100644 |
--- a/src/runtime/runtime-proxy.cc |
+++ b/src/runtime/runtime-proxy.cc |
@@ -65,5 +65,15 @@ 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); |
+ JSProxy::Revoke(proxy); |
+ return isolate->heap()->undefined_value(); |
+} |
+ |
+ |
} // namespace internal |
} // namespace v8 |