Migrate rest of dependencies test to wasm

This commit is contained in:
Alex Crichton
2018-08-06 10:42:08 -07:00
parent 28036db262
commit 005f7eb9fa
10 changed files with 87 additions and 120 deletions

View File

@ -0,0 +1,17 @@
const assert = require('assert');
let next = null;
exports.assert_next_undefined = function() {
next = undefined;
};
exports.assert_next_ten = function() {
next = 10;
};
exports.foo = function(a) {
console.log(a, next);
assert.strictEqual(a, next);
next = null;
};