mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
WASM: fix benchmark sample
This commit is contained in:
parent
ae896f3d90
commit
63bbb35cb1
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user