Skip to content

Commit 26f6a93

Browse files
committed
Remove the noreturn from implementation
1 parent 24459e1 commit 26f6a93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/weak-node-api/scripts/generate-weak-node-api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ export function generateSource(functions: FunctionDecl[]) {
4949
"};",
5050
``,
5151
// Generate function calling into the host
52-
...functions.flatMap(({ returnType, noReturn, name, argumentTypes }) => {
52+
...functions.flatMap(({ returnType, name, argumentTypes }) => {
5353
return [
5454
'extern "C"',
5555
returnType,
56-
noReturn ? "NAPI_NO_RETURN" : "",
5756
name,
5857
"(",
5958
argumentTypes.map((type, index) => `${type} arg${index}`).join(", "),

0 commit comments

Comments
 (0)