mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Support NULL as test result.
This commit is contained in:
parent
b3ac7c49fc
commit
81c865706c
@ -6,7 +6,7 @@ function callExport(instance) {
|
||||
var result = {};
|
||||
for (var method in testData) {
|
||||
try{
|
||||
result[method] = instance.exports[method]( ...testData[method] ).toString();
|
||||
result[method] = String(instance.exports[method]( ...testData[method] ));
|
||||
}catch(err){
|
||||
result[method] = err.toString();
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ function callExport(instance) {
|
||||
var result = {};
|
||||
for (var method in testData) {
|
||||
try{
|
||||
result[method] = instance.exports[method]( ...testData[method] ).toString();
|
||||
result[method] = String(instance.exports[method]( ...testData[method] ));
|
||||
}catch(err){
|
||||
result[method] = err.toString();
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ function callExport(instance) {
|
||||
var result = {};
|
||||
for (var method in testData) {
|
||||
try{
|
||||
result[method] = instance.exports[method]( ...testData[method] ).toString();
|
||||
result[method] = String(instance.exports[method]( ...testData[method] ));
|
||||
}catch(err){
|
||||
result[method] = err.toString();
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ function callExport(instance) {
|
||||
var result = {};
|
||||
for (var method in testData) {
|
||||
try{
|
||||
result[method] = instance.exports[method]( ...testData[method] ).toString();
|
||||
result[method] = String(instance.exports[method]( ...testData[method] ));
|
||||
}catch(err){
|
||||
result[method] = err.toString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user