Skip to content

Commit 94d762c

Browse files
committed
Remove libraryPath from FunctionDecl
1 parent bbcc2ef commit 94d762c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.changeset/light-games-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"weak-node-api": patch
3+
---
4+
5+
Remove libraryPath from function declarations

packages/weak-node-api/src/node-api-functions.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export type FunctionDecl = {
8282
returnType: string;
8383
noReturn: boolean;
8484
argumentTypes: string[];
85-
libraryPath: string;
8685
fallbackReturnStatement: string;
8786
};
8887

@@ -135,10 +134,6 @@ export function getNodeApiFunctions(version: NodeApiVersion = "v8") {
135134
argumentTypes: argumentTypes
136135
.split(",")
137136
.map((arg) => arg.trim().replace("_Bool", "bool")),
138-
// Defer to the right library
139-
libraryPath: engineSymbols.has(name)
140-
? "libhermes.so"
141-
: "libnode-api-host.so",
142137
fallbackReturnStatement:
143138
returnType === "void"
144139
? "abort();"

0 commit comments

Comments
 (0)