1 parent 11fa1d5 commit 9d1a3f7Copy full SHA for 9d1a3f7
4 files changed
test/cases/wasm/export-imported-global/env.js
@@ -0,0 +1 @@
1
+export const n = 1;
test/cases/wasm/export-imported-global/index.js
@@ -0,0 +1,5 @@
+it("should export imported global", function() {
2
+ return import("./module.wat").then(function({v}) {
3
+ expect(v).toBe(1);
4
+ });
5
+});
test/cases/wasm/export-imported-global/module.wat
@@ -0,0 +1,4 @@
+(module
+ (import "./env.js" "n" (global i32))
+ (export "v" (global 0))
+)
test/cases/wasm/export-imported-global/test.filter.js
+var supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
+
+module.exports = function(config) {
+ return supportsWebAssembly();
+};
0 commit comments