���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/deps/v8/src/builtins/ |
// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include 'src/builtins/builtins-proxy-gen.h' namespace proxy { extern macro ProxiesCodeStubAssembler::AllocateProxyRevokeFunction( implicit context: Context)(JSProxy): JSFunction; // Proxy.revocable(target, handler) // https://tc39.github.io/ecma262/#sec-proxy.revocable transitioning javascript builtin ProxyRevocable(js-implicit context: Context)(target: JSAny, handler: JSAny): JSProxyRevocableResult { try { const targetJSReceiver = Cast<JSReceiver>(target) otherwise ThrowProxyNonObject; if (IsRevokedProxy(targetJSReceiver)) { goto ThrowProxyHandlerOrTargetRevoked; } const handlerJSReceiver = Cast<JSReceiver>(handler) otherwise ThrowProxyNonObject; if (IsRevokedProxy(handlerJSReceiver)) { goto ThrowProxyHandlerOrTargetRevoked; } // 1. Let p be ? ProxyCreate(target, handler). const proxy: JSProxy = AllocateProxy(targetJSReceiver, handlerJSReceiver); // 2. Let steps be the algorithm steps defined in Proxy Revocation // Functions. // 3. Let revoker be CreateBuiltinFunction(steps, « [[RevocableProxy]] »). // 4. Set revoker.[[RevocableProxy]] to p. const revoke: JSFunction = AllocateProxyRevokeFunction(proxy); // 5. Let result be ObjectCreate(%ObjectPrototype%). // 6. Perform CreateDataProperty(result, "proxy", p). // 7. Perform CreateDataProperty(result, "revoke", revoker). // 8. Return result. return NewJSProxyRevocableResult(proxy, revoke); } label ThrowProxyNonObject deferred { ThrowTypeError(kProxyNonObject, 'Proxy.revocable'); } label ThrowProxyHandlerOrTargetRevoked deferred { ThrowTypeError(kProxyHandlerOrTargetRevoked, 'Proxy.revocable'); } } }