Partial implementation of node os polyfill based on currently available Deno functionality (#3821)

This commit is contained in:
cknight 2020-01-30 01:57:29 +00:00 committed by GitHub
parent 161adfc51b
commit f0a6062012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 505 additions and 1 deletions

View file

@ -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");
});