We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba99b5 commit 1f37a39Copy full SHA for 1f37a39
lib/internal/policy/manifest.js
@@ -430,12 +430,11 @@ class Manifest {
430
431
if (objectButNotArray(obj) && 'onerror' in obj) {
432
const behavior = obj.onerror;
433
- if (behavior === 'throw') {
434
- } else if (behavior === 'exit') {
+ if (behavior === 'exit') {
435
reaction = REACTION_EXIT;
436
} else if (behavior === 'log') {
437
reaction = REACTION_LOG;
438
- } else {
+ } else if (behavior !== 'throw') {
439
throw new ERR_MANIFEST_UNKNOWN_ONERROR(behavior);
440
}
441
@@ -579,8 +578,7 @@ class Manifest {
579
578
const entry = this.#scopeIntegrities.get(scope);
580
if (entry === true) {
581
return true;
582
- } else if (entry === kCascade) {
583
+ } else if (entry !== kCascade) {
584
break;
585
586
0 commit comments