feat: add failing test

This commit is contained in:
Sven SAULEAU 2018-05-29 15:09:19 +02:00 committed by Tobias Koppers
parent 11fa1d514d
commit 9d1a3f75cc
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
export const n = 1;

View File

@ -0,0 +1,5 @@
it("should export imported global", function() {
return import("./module.wat").then(function({v}) {
expect(v).toBe(1);
});
});

View File

@ -0,0 +1,4 @@
(module
(import "./env.js" "n" (global i32))
(export "v" (global 0))
)

View File

@ -0,0 +1,5 @@
var supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = function(config) {
return supportsWebAssembly();
};