Skip to content

Commit f955f20

Browse files
committed
scripts: JavaScript: put src at the top
1 parent 49c4441 commit f955f20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/templates/wasm-template.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Generated with https://github.com/kiwiyou/basm-rs
22
// Learn rust (https://doc.rust-lang.org/book/) and get high performance out of the box!
3+
$$$$solution_src$$$$
34
const fs = require('fs')
45
const code = require('zlib').inflateRawSync(Buffer.from(`$$$$binary_base64$$$$`, 'base64'))
56
const svc_read_stdio = (fd, buf, count) =>
@@ -11,6 +12,4 @@ WebAssembly.instantiate(code, { env: { svc_read_stdio, svc_write_stdio } }).then
1112
exports = wasm.instance.exports
1213
exports._start()
1314
}
14-
)
15-
16-
$$$$solution_src$$$$
15+
)

0 commit comments

Comments
 (0)