summaryrefslogtreecommitdiff
path: root/scripts/fuzz_shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/fuzz_shell.js')
-rw-r--r--scripts/fuzz_shell.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/fuzz_shell.js b/scripts/fuzz_shell.js
index 4cf3ba358..c4c0056f0 100644
--- a/scripts/fuzz_shell.js
+++ b/scripts/fuzz_shell.js
@@ -152,7 +152,15 @@ var imports = {
// Throw an exception from JS.
'throw': () => {
throw 'some JS error';
- }
+ },
+
+ // Table operations.
+ 'table-get': (index) => {
+ return exports.table.get(index >>> 0);
+ },
+ 'table-set': (index, value) => {
+ exports.table.set(index >>> 0, value);
+ },
},
// Emscripten support.
'env': {