Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ berRoundTrip
Function
berRoundTrip
tests/modules/crypt/ber/integer.js:23–27 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
21
berRoundTrip(-129n);
22
23
function
berRoundTrip(value) {
24
let
ber = BER.encode([0x02, value]);
25
let
v = BER.decode(ber);
26
assert.sameValue(value, v[1]);
27
}
Callers
1
integer.js
File · 0.70
Calls
2
encode
Method · 0.65
decode
Method · 0.65
Tested by
no test coverage detected