Skip to content

Add helper scripts for updating headers and symbols.js #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 15, 2023
Prev Previous commit
Next Next commit
Remove ts-check comment, clean up jsdoc
  • Loading branch information
KevinEady committed Jan 3, 2023
commit 4d032603be833dd47bdbfa7e0136df66cc763314
3 changes: 1 addition & 2 deletions scripts/write-symbols.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-check
'use strict';

const { spawn } = require('child_process');
Expand Down Expand Up @@ -43,7 +42,7 @@ async function getSymbolsForVersion(version) {

const ast = JSON.parse(stdout);

/** @type {{js_native_api_symbols: string[], node_api_symbols: string[]}} */
/** @type {SymbolInfo} */
const symbols = { js_native_api_symbols: [], node_api_symbols: [] };

for (const statement of ast.inner) {
Expand Down