1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

chore: temporarily disable op_require_read_file (#15433)

This commit is contained in:
David Sherret 2022-08-09 17:28:13 -04:00 committed by GitHub
parent 1c2ec1f48f
commit d6f789eb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -173,6 +173,7 @@ fn native_modules_as_global_vars() {
assert!(out.contains("true"));
}
#[ignore] // todo(dsherret): re-enable
#[test]
fn ext_node_cjs_execution() {
let (out, _err) = util::run_and_collect_output_with_args(

View file

@ -476,7 +476,7 @@
if (typeof options === "object" && options !== null) {
if (ArrayIsArray(options.paths)) {
const isRelative = core.opSync(
"op_require_specifier_is_relative",
"op_require_is_request_relative",
request,
);

View file

@ -311,7 +311,6 @@ fn op_require_try_self(
}
#[op]
fn op_require_read_file(filename: String) -> Result<String, AnyError> {
let contents = std::fs::read_to_string(filename)?;
Ok(contents)
fn op_require_read_file(_filename: String) -> Result<String, AnyError> {
todo!("not implemented");
}