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 — Ensure the type of the binding don't change · webpack/webpack@a5ae054

File tree

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

‎lib/dependencies/AMDDefineDependencyParserPlugin.js‎

Copy file name to clipboardExpand all lines: lib/dependencies/AMDDefineDependencyParserPlugin.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,8 @@ class AMDDefineDependencyParserPlugin {
223223
}
224224
}
225225
let fnRenames = parser.scope.renames.createChild();
226-
let identifiers;
227226
if (array) {
228-
identifiers = {};
227+
const identifiers = {};
229228
const param = parser.evaluateExpression(array);
230229
const result = this.processArray(
231230
parser,
@@ -244,7 +243,7 @@ class AMDDefineDependencyParserPlugin {
244243
return true;
245244
});
246245
} else {
247-
identifiers = ["require", "exports", "module"];
246+
const identifiers = ["require", "exports", "module"];
248247
if (fnParams)
249248
fnParams = fnParams.slice(fnParamsOffset).filter((param, idx) => {
250249
if (identifiers[idx]) {

0 commit comments

Comments
0 (0)
You are visitor 01402605 — 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.