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

Function randomProperty

deps/v8/tools/clusterfuzz/js_fuzzer/mutators/common.js:281–291  ·  view source on GitHub ↗
(identifier, seed)

Source from the content-addressed store, hash-verified

279}
280
281function randomProperty(identifier, seed) {
282 if (seed === undefined) {
283 seed = randomSeed();
284 }
285
286 const template = babelTemplate('__getRandomProperty(IDENTIFIER, SEED)');
287 return template({
288 IDENTIFIER: identifier,
289 SEED: _numericLiteral(seed),
290 }).expression;
291}
292
293function randomArguments(path) {
294 const numArgs = random.randInt(0, MAX_ARGUMENT_COUNT);

Callers

nothing calls this directly

Calls 2

randomSeedFunction · 0.85
_numericLiteralFunction · 0.85

Tested by

no test coverage detected