GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor: remove type cast · webpack/webpack@8bdc8ad

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/wasm
    • WebAssemblyParser.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/wasm/WebAssemblyParser.js‎

Copy file name to clipboardExpand all lines: lib/wasm/WebAssemblyParser.js
+6-9Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,24 @@ class WebAssemblyParser extends Tapable {
4545
const exports = (state.module.buildMeta.providedExports = []);
4646
t.traverse(ast, {
4747
ModuleExport({ node }) {
48-
const moduleExport = /** @type {t.ModuleExport} */ (node);
49-
exports.push(moduleExport.name);
48+
exports.push(node.name);
5049
},
5150

5251
ModuleImport({ node }) {
53-
const moduleImport = /** @type {t.ModuleImport} */ (node);
54-
5552
let onlyDirectImport = false;
5653

57-
if (isMemoryImport(moduleImport) === true) {
54+
if (isMemoryImport(node) === true) {
5855
onlyDirectImport = true;
5956
}
6057

61-
if (isTableImport(moduleImport) === true) {
58+
if (isTableImport(node) === true) {
6259
onlyDirectImport = true;
6360
}
6461

6562
const dep = new WebAssemblyImportDependency(
66-
moduleImport.module,
67-
moduleImport.name,
68-
moduleImport.descr,
63+
node.module,
64+
node.name,
65+
node.descr,
6966
onlyDirectImport
7067
);
7168

0 commit comments

Comments
0 (0)
You are visitor 01402639 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.