Vendor dependencies

Let's see how I like this workflow.
This commit is contained in:
John Doty 2022-12-19 08:27:18 -08:00
parent 34d1830413
commit 9c435dc440
7500 changed files with 1665121 additions and 99 deletions

View file

@ -0,0 +1,24 @@
const wasm = require("wasm-bindgen-test.js");
const assert = require("assert");
exports.js_keywords_compile = () => {
assert.strictEqual(wasm._throw(1), 1);
assert.strictEqual(wasm._class(1, 2), false);
assert.strictEqual(wasm.classy(3), 3);
let obj = new wasm.Class("class");
assert.strictEqual(wasm.Class.void("string"), "string");
assert.strictEqual(obj.catch, "class");
assert.strictEqual(obj.instanceof("Class"), "class is instance of Class");
};
exports.test_keyword_1_as_fn_name = (x) => {
return wasm._throw(x);
};
exports.test_keyword_2_as_fn_name = (x, y) => {
return wasm._class(x, y);
};
exports.test_keyword_as_fn_arg = (x) => {
return wasm.classy(x);
};