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

Function runAssertions

test/parallel/test-vm-global-get-own.js:14–25  ·  view source on GitHub ↗
(data, property, viaDefine, value1, value2, value3)

Source from the content-addressed store, hash-verified

12const contextGlobal = vm.runInContext('this', vm.createContext());
13
14function runAssertions(data, property, viaDefine, value1, value2, value3) {
15 // Define the property for the first time
16 setPropertyAndAssert(data, property, viaDefine, value1);
17 // Update the property
18 setPropertyAndAssert(data, property, viaDefine, value2);
19 // Delete the property
20 deletePropertyAndAssert(data, property);
21 // Re-define the property
22 setPropertyAndAssert(data, property, viaDefine, value3);
23 // Delete the property again
24 deletePropertyAndAssert(data, property);
25}
26
27const fun1 = () => 1;
28const fun2 = () => 2;

Callers 1

Calls 2

setPropertyAndAssertFunction · 0.85
deletePropertyAndAssertFunction · 0.85

Tested by

no test coverage detected