MCPcopy Create free account
hub / github.com/nodejs/node / handler

Function handler

deps/v8/test/mjsunit/es6/proxies.js:1034–1045  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

1032 var o5 = Object.create(o3)
1033
1034 function handler(o) {
1035 return {
1036 get: function(r, p) {
1037 // We want to test prototype lookup, so ensure the proxy
1038 // offers OrdinaryHasInstance behavior.
1039 if (p === Symbol.hasInstance) {
1040 return undefined;
1041 }
1042 return o;
1043 }
1044 }
1045 }
1046
1047 var f0 = new Proxy(function() {}, handler(o0))
1048 var f1 = new Proxy(function() {}, handler(o1))

Callers 7

proxies.jsFile · 0.70
withMetaFunction · 0.50
listenerFunction · 0.50
listenerFunction · 0.50
_dispatchMessageMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected