/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/check/check_node_builtin_modules/mod.ts
9 строк
386 B
Leo Kettmeir
chore(lint): add .out file reference checker (#27078)
27 ноя 2024, 07:53
Не верифицирован
27 ноя 2024, 07:53
42b71d8
Код
Авторство
О чём код?
import fs from "node:fs"; const _data = fs.readFileSync("./node_builtin.js", 123); // check node:module specifically because for deno check it should // resolve to the @types/node package, but at runtime it uses a different // builtin object than deno_std import { builtinModules } from "node:module"; // should error about being string[] const _testString: number[] = builtinModules;