mirror of https://github.com/webpack/webpack.git
feat: add failing test
This commit is contained in:
parent
11fa1d514d
commit
9d1a3f75cc
|
|
@ -0,0 +1 @@
|
|||
export const n = 1;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
it("should export imported global", function() {
|
||||
return import("./module.wat").then(function({v}) {
|
||||
expect(v).toBe(1);
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(module
|
||||
(import "./env.js" "n" (global i32))
|
||||
(export "v" (global 0))
|
||||
)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
var supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
|
||||
|
||||
module.exports = function(config) {
|
||||
return supportsWebAssembly();
|
||||
};
|
||||
Loading…
Reference in New Issue