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

Function shouldBeUndefined

deps/v8/test/webkit/resources/standalone-pre.js:136–152  ·  view source on GitHub ↗
(_a)

Source from the content-addressed store, hash-verified

134}
135
136function shouldBeUndefined(_a)
137{
138 var exception;
139 var _av;
140 try {
141 _av = eval(_a);
142 } catch (e) {
143 exception = e;
144 }
145
146 if (exception)
147 testFailed(_a + " should be undefined. Threw exception " + exception);
148 else if (typeof _av == "undefined")
149 testPassed(_a + " is undefined.");
150 else
151 testFailed(_a + " should be undefined. Was " + _av);
152}
153
154
155function shouldThrow(_a, _e)

Calls 3

testFailedFunction · 0.85
testPassedFunction · 0.85
evalFunction · 0.50

Tested by

no test coverage detected