MCPcopy Create free account
hub / github.com/awslabs/llrt / postSetup

Function postSetup

tests/wpt/encoding.harness.js:21–30  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

19 scripts: [
20 "encoding/resources/encodings.js",
21 "encoding/resources/decoding-helpers.js",
22 ],
23 }),
24 postSetup(context) {
25 if (Array.isArray(context.encodings_table)) {
26 context.encodings_table = context.encodings_table
27 .map((s) => ({
28 ...s,
29 encodings: s.encodings.filter((e) => SUPPORTED.has(e.name)),
30 }))
31 .filter((s) => s.encodings.length > 0);
32 }
33 },

Callers

nothing calls this directly

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected