mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 02:11:31 +00:00
llvm-like naming of __heap_base, definition fixes, update examples
This commit is contained in:
7
examples/n-body/scripts/postprocess-asmjs.js
Normal file
7
examples/n-body/scripts/postprocess-asmjs.js
Normal file
@ -0,0 +1,7 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const filename = path.join(__dirname, "..", "build" , "index.asm.js");
|
||||
var source = fs.readFileSync(filename, { encoding: "utf8" });
|
||||
source = source.replace(/^export var ([^ ]+) =/mg, ($0, $1) => "exports." + $1 + " = ");
|
||||
fs.writeFileSync(filename, source);
|
Reference in New Issue
Block a user