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

Function test

deps/v8/test/mjsunit/json-parser-double-arrays.js:7–11  ·  view source on GitHub ↗
(string, expected)

Source from the content-addressed store, hash-verified

5// Flags: --allow-natives-syntax
6
7function test(string, expected) {
8 const got = JSON.parse(string);
9 assertEquals(expected, got);
10 assertEquals(%HasSmiElements(expected), %HasSmiElements(got));
11}
12
13function testError(string) {
14 assertThrows(() => JSON.parse(string));

Callers 1

Calls 2

parseMethod · 0.65
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…