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

Function Format

deps/v8/tools/bigint-tester.py:65–80  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

63 return int(x[:-1], kBase)
64
65def Format(x):
66 original = x
67 negative = False
68 if x == 0: return "0n"
69 if x < 0:
70 negative = True
71 x = -x
72 s = ""
73 while x > 0:
74 s = kChars[x % kBase] + s
75 x = x / kBase
76 s = "0x" + s + "n"
77 if negative:
78 s = "-" + s
79 assert Parse(s) == original
80 return s
81
82class TestGenerator(object):
83 # Subclasses must implement these.

Callers 2

EmitOneMethod · 0.85
EmitOneMethod · 0.85

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…