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

Function TestForInThrow2

deps/v8/test/mjsunit/es6/proxies-for.js:104–109  ·  view source on GitHub ↗
(create, handler)

Source from the content-addressed store, hash-verified

102}
103
104function TestForInThrow2(create, handler) {
105 var p = create(handler)
106 var o = Object.create(p)
107 assertThrowsEquals(function(){ for (var x in p) {} }, "myexn")
108 assertThrowsEquals(function(){ for (var x in o) {} }, "myexn")
109}
110
111TestForInThrow({
112 ownKeys: function() { throw "myexn" }

Callers

nothing calls this directly

Calls 2

createFunction · 0.50
createMethod · 0.45

Tested by

no test coverage detected