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