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 — policy: revise manifest.js to avoid empty blocks · nodejs/node@08b3bd2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/policy
    • manifest.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/policy/manifest.js‎

Copy file name to clipboardExpand all lines: lib/internal/policy/manifest.js
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,11 @@ class Manifest {
430430

431431
if (objectButNotArray(obj) && 'onerror' in obj) {
432432
const behavior = obj.onerror;
433-
if (behavior === 'throw') {
434-
} else if (behavior === 'exit') {
433+
if (behavior === 'exit') {
435434
reaction = REACTION_EXIT;
436435
} else if (behavior === 'log') {
437436
reaction = REACTION_LOG;
438-
} else {
437+
} else if (behavior !== 'throw') {
439438
throw new ERR_MANIFEST_UNKNOWN_ONERROR(behavior);
440439
}
441440
}
@@ -579,8 +578,7 @@ class Manifest {
579578
const entry = this.#scopeIntegrities.get(scope);
580579
if (entry === true) {
581580
return true;
582-
} else if (entry === kCascade) {
583-
} else {
581+
} else if (entry !== kCascade) {
584582
break;
585583
}
586584
}

0 commit comments

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