summaryrefslogtreecommitdiff
path: root/test/binaryen.js/reloc.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/reloc.js')
-rw-r--r--test/binaryen.js/reloc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/binaryen.js/reloc.js b/test/binaryen.js/reloc.js
index 0235ea413..cd63fb5a4 100644
--- a/test/binaryen.js/reloc.js
+++ b/test/binaryen.js/reloc.js
@@ -5,6 +5,7 @@ var module = new binaryen.Module();
module.addGlobalImport("memory_base", "env", "memory_base", binaryen.i32, false);
module.setMemory(1, -1, null, [
{
+ name: "x0",
offset: module.global.get("memory_base", binaryen.i32),
data: "data data".split('').map(function(x) { return x.charCodeAt(0) })
}