From 10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:41:41 +0200 Subject: Merging upstream version 1.70.0+dfsg2. Signed-off-by: Daniel Baumann --- vendor/wasm-bindgen/tests/wasm/duplicate_deps.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vendor/wasm-bindgen/tests/wasm/duplicate_deps.js (limited to 'vendor/wasm-bindgen/tests/wasm/duplicate_deps.js') 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; +}; -- cgit v1.2.3