From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js b/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js
index 3758be5..40a80ed 100644
--- a/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js
+++ b/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js
@@ -22,6 +22,7 @@
const JS_COMPAT_TYPES = new Set(["i32", "i64", "f32", "f64", "externref"]);
/**
+ * Gets js incompatible type.
* @param {t.Signature} signature the func signature
* @returns {null | string} the type incompatible with js types
*/
@@ -64,6 +65,7 @@
class WebAssemblyParser extends Parser {
/**
+ * Parses the provided source and updates the parser state.
* @param {string | Buffer | PreparsedAst} source the source to parse
* @param {ParserState} state the parser state
* @returns {ParserState} the parser state
@@ -92,7 +94,8 @@
/** @type {Record<string, string> | undefined} */
let jsIncompatibleExports = (buildMeta.jsIncompatibleExports = undefined);
- /** @type {(ModuleImport | null)[]} */
+ /** @typedef {ModuleImport | null} ImportNode */
+ /** @type {ImportNode[]} */
const importedGlobals = [];
t.traverse(module, {
@@ -139,6 +142,7 @@
Global({ node }) {
const init = node.init[0];
+ /** @type {ImportNode} */
let importNode = null;
if (init.id === "get_global") {
--
Gitblit v1.9.3