mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Partial implementation of node os polyfill based on currently available Deno functionality (#3821)
This commit is contained in:
parent
161adfc51b
commit
f0a6062012
5 changed files with 505 additions and 1 deletions
|
@ -42,3 +42,9 @@ test(function requireIndexJS() {
|
|||
const { isIndex } = require_("./tests/cjs");
|
||||
assert(isIndex);
|
||||
});
|
||||
|
||||
test(function requireNodeOs() {
|
||||
const os = require_("os");
|
||||
assert(os.arch);
|
||||
assert(typeof os.arch() == "string");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue