WASM: fix benchmark sample

This commit is contained in:
Alexey Andreev 2019-10-01 14:53:42 +03:00
parent ae896f3d90
commit 63bbb35cb1
2 changed files with 5 additions and 3 deletions

View File

@ -165,7 +165,8 @@
<debugInformationGenerated>true</debugInformationGenerated>
<targetType>WEBASSEMBLY</targetType>
<optimizationLevel>FULL</optimizationLevel>
<heapSize>8</heapSize>
<minHeapSize>1</minHeapSize>
<maxHeapSize>16</maxHeapSize>
</configuration>
</execution>
<execution>
@ -179,7 +180,8 @@
<debugInformationGenerated>true</debugInformationGenerated>
<targetType>C</targetType>
<optimizationLevel>FULL</optimizationLevel>
<heapSize>8</heapSize>
<minHeapSize>1</minHeapSize>
<maxHeapSize>16</maxHeapSize>
</configuration>
</execution>
</executions>

View File

@ -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);
}