Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jun 12, 2023
1 parent e4d0c0b commit 28c8019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/wasm-async/AsyncWebAssemblyParser.js
Expand Up @@ -12,6 +12,7 @@ const StaticExportsDependency = require("../dependencies/StaticExportsDependency
const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDependency");

/** @typedef {import("../Module").BuildInfo} BuildInfo */
/** @typedef {import("../Module").BuildMeta} BuildMeta */
/** @typedef {import("../Parser").ParserState} ParserState */
/** @typedef {import("../Parser").PreparsedAst} PreparsedAst */

Expand Down Expand Up @@ -46,8 +47,9 @@ class WebAssemblyParser extends Parser {
// flag it as async module
const buildInfo = /** @type {BuildInfo} */ (state.module.buildInfo);
buildInfo.strict = true;
buildInfo.exportsType = "namespace";
buildInfo.async = true;
const BuildMeta = /** @type {BuildMeta} */ (state.module.buildMeta);
BuildMeta.exportsType = "namespace";
BuildMeta.async = true;

// parse it
const program = decode(source, decoderOpts);
Expand Down

0 comments on commit 28c8019

Please sign in to comment.