diff options
Diffstat (limited to 'vendor/wasm-bindgen/tests/wasm/duplicate_deps.js')
-rw-r--r-- | vendor/wasm-bindgen/tests/wasm/duplicate_deps.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/wasm/duplicate_deps.js b/vendor/wasm-bindgen/tests/wasm/duplicate_deps.js new file mode 100644 index 000000000..b69139dfa --- /dev/null +++ b/vendor/wasm-bindgen/tests/wasm/duplicate_deps.js @@ -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; +}; |