mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
42b71d82db
Co-authored-by: David Sherret <dsherret@gmail.com>
9 lines
386 B
TypeScript
9 lines
386 B
TypeScript
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;
|