Files
oxc-project__oxc/apps/oxlint/src-js/utils/asserts.ts
overlookmotel cfaa754ded refactor(linter/plugins): debug assert that values passed via NAPI are not undefined (#20070)
Follow-on after #19675.

The type for `lint` function that NAPI-RS produces is incorrect. `Option::None` on Rust side is translated to `null`, never `undefined`. Check this with a debug assertion, instead of handling `undefined` at runtime (which is pointless, because it never is `undefined`).
2026-03-06 17:39:15 +00:00

4.4 KiB