Catch errors in Table and Module constructors

This commit is contained in:
Frazer McLean
2018-08-20 22:12:29 +02:00
parent 7432f5ff5c
commit 1ea1410f98
3 changed files with 34 additions and 11 deletions

View File

@ -17,7 +17,12 @@ function getTableObject() {
return { element: "anyfunc", initial: 1 }
}
function getInvalidTableObject() {
return { element: "anyfunc", initial: 1, maximum: 0 }
}
module.exports = {
getWasmArray,
getInvalidTableObject,
getTableObject,
getWasmArray,
};