mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Migrate rest of dependencies
test to wasm
This commit is contained in:
17
tests/wasm/duplicate_deps.js
Normal file
17
tests/wasm/duplicate_deps.js
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user