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

Function TestGetOwnPropertyThrow2

deps/v8/test/mjsunit/es6/proxies.js:118–122  ·  view source on GitHub ↗
(create, handler)

Source from the content-addressed store, hash-verified

116}
117
118function TestGetOwnPropertyThrow2(create, handler) {
119 var p = create(handler)
120 assertThrowsEquals(() => Object.getOwnPropertyDescriptor(p, "a"), "myexn")
121 assertThrowsEquals(() => Object.getOwnPropertyDescriptor(p, 77), "myexn")
122}
123
124TestGetOwnPropertyThrow({
125 getOwnPropertyDescriptor: function(k) { throw "myexn" }

Callers

nothing calls this directly

Calls 1

createFunction · 0.50

Tested by

no test coverage detected