Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 052069c

Browse files
committed
test
1 parent b8ff886 commit 052069c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/common/error-rewrite.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Zone.__load_patch('Error', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
358358
childDetectZone.scheduleMicroTask(
359359
blacklistedStackFramesSymbol,
360360
() => {
361-
throw new (ZoneAwareError as any)(ZoneAwareError, NativeError);
361+
throw new Error();
362362
},
363363
null,
364364
(t: Task) => {
@@ -368,8 +368,7 @@ Zone.__load_patch('Error', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
368368
childDetectZone.scheduleMicroTask(
369369
blacklistedStackFramesSymbol,
370370
() => {
371-
const err = (ZoneAwareError as any)(ZoneAwareError, NativeError);
372-
throw err;
371+
throw Error();
373372
},
374373
null,
375374
(t: Task) => {

0 commit comments

Comments
 (0)