mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-31 07:23:06 +08:00
- SC1010's wording routes through one helper (unsupportedModuleFeatureOf): pending modules keep the plain not-yet story, out-of-scope ones append the reason - v8/inspector name the missing V8 engine, node:sqlite the unbundled SQLite library, domain its deprecation and engine-level interception, and the fourteen underscore-prefixed legacy modules their Node-internal implementation objects - All five fence sites reword together: the four import/require edges in program.ts and the fenced-binding use site in lower-exprs.ts - New diagnostics fixture module-out-of-scope.ts pins the reasons (and that stream/web stays plain not-yet); the coverage import-fences snapshot repins with the v8 reason
14 lines
694 B
TypeScript
14 lines
694 B
TypeScript
// The out-of-scope builtin fences: modules a compiled binary is not going
|
|
// to serve say WHY — V8 introspection, the inspector protocol, the bundled
|
|
// SQLite engine, the deprecated domain module, and Node's underscore-
|
|
// prefixed implementation internals — while genuinely pending surface
|
|
// (stream/web here) keeps the plain not-yet wording.
|
|
import { getHeapStatistics } from "node:v8";
|
|
import { create } from "domain";
|
|
import { DatabaseSync } from "node:sqlite";
|
|
import { HTTPParser } from "_http_common";
|
|
import { open } from "node:inspector";
|
|
import { ReadableStream } from "node:stream/web";
|
|
|
|
console.log(getHeapStatistics, create, DatabaseSync, HTTPParser, open, ReadableStream);
|