MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / normalizeOffset

Method normalizeOffset

src/source_map_support.js:76–90  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

74 }
75
76 normalizeOffset(offset) {
77 var lo = 0;
78 var hi = this.offsets.length;
79 var mid;
80
81 while (lo < hi) {
82 mid = Math.floor((lo + hi) / 2);
83 if (this.offsets[mid] > offset) {
84 hi = mid;
85 } else {
86 lo = mid + 1;
87 }
88 }
89 return this.offsets[lo - 1];
90 }
91}
92
93var wasmSourceMap;

Callers 1

lookupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected