Skip to content

Commit 7c4e9ae

Browse files
committed
Renamed to IMPLEMENTED_RUNTIME_FUNCTIONS
1 parent aa770f6 commit 7c4e9ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FunctionDecl, getNodeApiFunctions } from "./node-api-functions";
77
export const CPP_SOURCE_PATH = path.join(__dirname, "../cpp");
88

99
// TODO: Remove when all runtime Node API functions are implemented
10-
const implementedRuntimeFunctions = [
10+
const IMPLEMENTED_RUNTIME_FUNCTIONS = [
1111
"napi_create_buffer",
1212
"napi_create_buffer_copy",
1313
"napi_is_buffer",
@@ -55,7 +55,7 @@ export function generateSource(functions: FunctionDecl[]) {
5555
${functions
5656
.filter(
5757
({ kind, name }) =>
58-
kind === "engine" || implementedRuntimeFunctions.includes(name)
58+
kind === "engine" || IMPLEMENTED_RUNTIME_FUNCTIONS.includes(name)
5959
)
6060
.flatMap(({ name }) => `.${name} = ${name},`)
6161
.join("\n")}

0 commit comments

Comments
 (0)