From 63bbb35cb1a058146b3b3041287d9f563132d16e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 1 Oct 2019 14:53:42 +0300 Subject: [PATCH] WASM: fix benchmark sample --- samples/benchmark/pom.xml | 6 ++++-- samples/benchmark/src/main/webapp/teavm-wasm.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/samples/benchmark/pom.xml b/samples/benchmark/pom.xml index 9f0483769..5bc32b762 100644 --- a/samples/benchmark/pom.xml +++ b/samples/benchmark/pom.xml @@ -165,7 +165,8 @@ true WEBASSEMBLY FULL - 8 + 1 + 16 @@ -179,7 +180,8 @@ true C FULL - 8 + 1 + 16 diff --git a/samples/benchmark/src/main/webapp/teavm-wasm.js b/samples/benchmark/src/main/webapp/teavm-wasm.js index 039fce4b7..45378e8d6 100644 --- a/samples/benchmark/src/main/webapp/teavm-wasm.js +++ b/samples/benchmark/src/main/webapp/teavm-wasm.js @@ -93,7 +93,7 @@ var Benchmark = function() { function tick() { var exports = this.instance.exports; exports.tick(); - var exception = exports.sys_catchException(); + var exception = exports.teavm_catchException(); if (exception !== 0) { console.log("Exception: " + exception); }