Support NULL as test result.

This commit is contained in:
Volker Berlin 2019-10-20 14:43:05 +02:00
parent b3ac7c49fc
commit 81c865706c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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