-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b75fef0
commit fcca15d
Showing
4 changed files
with
273 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//@ts-nocheck | ||
import { resolve } from 'path' | ||
import { SomeThrow, SomeThrow as SomeThrow2, Something, testing as Test, testing as Test2 } from './something' | ||
import Testing from './something3' | ||
import { SomethingElse } from './somethingElse' | ||
import { SomethingElse as SomethingElse2 } from './somethingElse2' | ||
|
||
export function test() { | ||
try { | ||
SomethingElse() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
SomethingElse2() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
Testing() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
resolve() | ||
try { | ||
SomeThrow() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
Test() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
SomeThrow2() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
Test2() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
try { | ||
Something() | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export const someThrow = () => { | ||
throw new Error('some error') | ||
} | ||
export function someThrow2() { | ||
throw new Error('some error') | ||
} | ||
|
||
export const someTsx = () => { | ||
if (something) { | ||
throw new Error() | ||
} | ||
return <div>some tsx</div> | ||
} | ||
|
||
export async function someAsyncTsx() { | ||
if (something) { | ||
throw new Error() | ||
} | ||
return <div>some tsx</div> | ||
} | ||
|
||
export async function callToThrow() { | ||
someThrow() | ||
someThrow2() | ||
return <div>some tsx</div> | ||
} | ||
|
||
export const someTsxWithJsx = async () => { | ||
someThrow() | ||
someThrow2() | ||
return <div>some tsx</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// @ts-nocheck | ||
export const someThrow = () => { | ||
throw new Error('some error') | ||
} | ||
export function someThrow2() { | ||
throw new Error('some error') | ||
} | ||
|
||
export const someTsx = () => { | ||
if (something) { | ||
throw new Error() | ||
} | ||
return <div>some tsx</div> | ||
} | ||
|
||
export async function someAsyncTsx({ something }: { something: boolean }) { | ||
if (something) { | ||
throw new Error() | ||
} | ||
return <div>some tsx</div> | ||
} | ||
|
||
export async function callToThrow() { | ||
someThrow() | ||
someThrow2() | ||
return <div>some tsx</div> | ||
} | ||
|
||
export const someTsxWithJsx = async () => { | ||
someThrow() | ||
someThrow2() | ||
return <div>some tsx</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters