summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/01_require.js2
-rw-r--r--ext/node/lib.rs5
2 files changed, 3 insertions, 4 deletions
diff --git a/ext/node/01_require.js b/ext/node/01_require.js
index 5a29617b1..7b89e9dc3 100644
--- a/ext/node/01_require.js
+++ b/ext/node/01_require.js
@@ -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,
);
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index 5d6542dc5..80296a6cc 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -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");
}