mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
37a24c7bdf
Adds support for "node:" prefix for Node built-ins in "--compat" mode. As per https://nodejs.org/api/esm.html#esm_node_imports
19 lines
540 B
Rust
19 lines
540 B
Rust
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
|
|
use crate::itest;
|
|
|
|
itest!(fs_promises {
|
|
args: "run --compat --unstable -A compat/fs_promises.js",
|
|
output: "compat/fs_promises.out",
|
|
});
|
|
|
|
itest!(node_prefix_fs_promises {
|
|
args: "run --compat --unstable -A compat/node_fs_promises.js",
|
|
output: "compat/fs_promises.out",
|
|
});
|
|
|
|
itest!(existing_import_map {
|
|
args: "run --compat --import-map compat/existing_import_map.json compat/fs_promises.js",
|
|
output: "compat/existing_import_map.out",
|
|
exit_code: 1,
|
|
});
|