Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ validateDecoder
Function
validateDecoder
lib/internal/encoding.js:67–70 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
65
} = binding;
66
67
function
validateDecoder(obj) {
68
if
(obj == null || obj[kDecoder] !== true)
69
throw
new
ERR_INVALID_THIS(
'TextDecoder'
);
70
}
71
72
const
CONVERTER_FLAGS_FLUSH = 0x1;
73
const
CONVERTER_FLAGS_FATAL = 0x2;
Callers
5
decode
Method · 0.85
encoding
Function · 0.85
fatal
Function · 0.85
ignoreBOM
Function · 0.85
[inspect]
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…