mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 15:21:26 -05:00
chore: temporarily disable op_require_read_file
(#15433)
This commit is contained in:
parent
1c2ec1f48f
commit
d6f789eb05
3 changed files with 4 additions and 4 deletions
|
@ -173,6 +173,7 @@ fn native_modules_as_global_vars() {
|
||||||
assert!(out.contains("true"));
|
assert!(out.contains("true"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[ignore] // todo(dsherret): re-enable
|
||||||
#[test]
|
#[test]
|
||||||
fn ext_node_cjs_execution() {
|
fn ext_node_cjs_execution() {
|
||||||
let (out, _err) = util::run_and_collect_output_with_args(
|
let (out, _err) = util::run_and_collect_output_with_args(
|
||||||
|
|
|
@ -476,7 +476,7 @@
|
||||||
if (typeof options === "object" && options !== null) {
|
if (typeof options === "object" && options !== null) {
|
||||||
if (ArrayIsArray(options.paths)) {
|
if (ArrayIsArray(options.paths)) {
|
||||||
const isRelative = core.opSync(
|
const isRelative = core.opSync(
|
||||||
"op_require_specifier_is_relative",
|
"op_require_is_request_relative",
|
||||||
request,
|
request,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -311,7 +311,6 @@ fn op_require_try_self(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[op]
|
#[op]
|
||||||
fn op_require_read_file(filename: String) -> Result<String, AnyError> {
|
fn op_require_read_file(_filename: String) -> Result<String, AnyError> {
|
||||||
let contents = std::fs::read_to_string(filename)?;
|
todo!("not implemented");
|
||||||
Ok(contents)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue