Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ constructor
Method
constructor
benchmark/data-min.js:3–5 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
1
import
{ encode as k } from
'sourcemap-codec'
;
2
class
p {
3
constructor(t) {
4
this.bits = t instanceof p ? t.bits.slice() : [];
5
}
6
add(t) {
7
this.bits[t >> 5] |= 1 << (t & 31);
8
}
Callers
nothing calls this directly
Calls
1
slice
Method · 0.45
Tested by
no test coverage detected