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

Function GetVars

deps/v8/tools/generate-builtins-tests.py:34–42  ·  view source on GitHub ↗
(result, num, first = [])

Source from the content-addressed store, hash-verified

32
33
34def GetVars(result, num, first = []):
35 global g_var_index
36 variables = []
37 for i in range(num):
38 variables.append("__v_%d" % g_var_index)
39 g_var_index += 1
40 for var in variables:
41 result.append("var %s = %s;" % (var, GetRandomObject()))
42 return ", ".join(first + variables)
43
44
45# Wraps |string| in try..catch.

Callers 1

BuildTestsFunction · 0.85

Calls 4

GetRandomObjectFunction · 0.85
rangeFunction · 0.50
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…