MCPcopy Index your code
hub / github.com/nodejs/node / check

Function check

deps/v8/test/mjsunit/array-methods-read-only-length.js:11–15  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

9 Object.defineProperty(a, "length", { writable : false});
10
11 function check(f) {
12 assertThrows(function() { f(a) }, TypeError);
13 assertFalse(0 in a);
14 assertEquals(0, a.length);
15 }
16
17 function push(a) {
18 a.push(3);

Callers 2

testAddFunction · 0.70
testRemoveFunction · 0.70

Calls 4

fFunction · 0.70
assertThrowsFunction · 0.50
assertFalseFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…