summaryrefslogtreecommitdiff
path: root/test/binaryen.js/hello-world.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/hello-world.js')
-rw-r--r--test/binaryen.js/hello-world.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/binaryen.js/hello-world.js b/test/binaryen.js/hello-world.js
index 2a9a56ed0..03cfb4163 100644
--- a/test/binaryen.js/hello-world.js
+++ b/test/binaryen.js/hello-world.js
@@ -11,8 +11,8 @@ var iii = module.addFunctionType('iii', Binaryen.i32, [Binaryen.i32, Binaryen.i3
// Start to create the function, starting with the contents: Get the 0 and
// 1 arguments, and add them, then return them
-var left = module.getLocal(0, Binaryen.i32);
-var right = module.getLocal(1, Binaryen.i32);
+var left = module.local.get(0, Binaryen.i32);
+var right = module.local.get(1, Binaryen.i32);
var add = module.i32.add(left, right);
var ret = module.return(add);