diff options
Diffstat (limited to 'deps/v8/src/builtins/proxy-revoke.tq')
-rw-r--r-- | deps/v8/src/builtins/proxy-revoke.tq | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/deps/v8/src/builtins/proxy-revoke.tq b/deps/v8/src/builtins/proxy-revoke.tq index 7300f4d7179..5d2071b931b 100644 --- a/deps/v8/src/builtins/proxy-revoke.tq +++ b/deps/v8/src/builtins/proxy-revoke.tq @@ -6,31 +6,31 @@ namespace proxy { - // Proxy Revocation Functions - // https://tc39.github.io/ecma262/#sec-proxy-revocation-functions - transitioning javascript builtin - ProxyRevoke(js-implicit context: NativeContext)(): Undefined { - // 1. Let p be F.[[RevocableProxy]]. - const proxyObject: Object = context[PROXY_SLOT]; - - // 2. If p is null, return undefined - if (proxyObject == Null) { - return Undefined; - } +// Proxy Revocation Functions +// https://tc39.github.io/ecma262/#sec-proxy-revocation-functions +transitioning javascript builtin +ProxyRevoke(js-implicit context: NativeContext)(): Undefined { + // 1. Let p be F.[[RevocableProxy]]. + const proxyObject: Object = context[PROXY_SLOT]; + + // 2. If p is null, return undefined + if (proxyObject == Null) { + return Undefined; + } - // 3. Set F.[[RevocableProxy]] to null. - context[PROXY_SLOT] = Null; + // 3. Set F.[[RevocableProxy]] to null. + context[PROXY_SLOT] = Null; - // 4. Assert: p is a Proxy object. - const proxy: JSProxy = UnsafeCast<JSProxy>(proxyObject); + // 4. Assert: p is a Proxy object. + const proxy: JSProxy = UnsafeCast<JSProxy>(proxyObject); - // 5. Set p.[[ProxyTarget]] to null. - proxy.target = Null; + // 5. Set p.[[ProxyTarget]] to null. + proxy.target = Null; - // 6. Set p.[[ProxyHandler]] to null. - proxy.handler = Null; + // 6. Set p.[[ProxyHandler]] to null. + proxy.handler = Null; - // 7. Return undefined. - return Undefined; - } + // 7. Return undefined. + return Undefined; +} } |