MCPcopy Index your code
hub / github.com/browserify/rustify / handleCode

Function handleCode

lib/transform.js:75–85  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

73 }
74
75 function handleCode (val) {
76 rustify(val.filename, val.code, outdir, function (err, buf) {
77 if (err) return done(err)
78 var center = []
79 buf.forEach((c) => center.push(c))
80 var str = `new Uint8Array(${JSON.stringify(center)})`
81
82 val.node.update(str)
83 done()
84 })
85 }
86 }
87
88 function extractNodes (node) {

Callers 1

iterateFunction · 0.85

Calls 1

rustifyFunction · 0.70

Tested by

no test coverage detected