From e4fe5ee72ace30ccd1b7b6b15717164cf79f49c4 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 29 Nov 2022 14:13:14 +0900 Subject: fix(ext/node): allow absolute path in createRequire (#16853) Co-authored-by: David Sherret --- cli/tests/testdata/npm/create_require/main.out | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/tests/testdata/npm/create_require') diff --git a/cli/tests/testdata/npm/create_require/main.out b/cli/tests/testdata/npm/create_require/main.out index ebd96c120..70b0415b3 100644 --- a/cli/tests/testdata/npm/create_require/main.out +++ b/cli/tests/testdata/npm/create_require/main.out @@ -1,6 +1,12 @@ [WILDCARD] function function +function +function +function +function The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received https://example.com/ The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received https://example.com/ The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 1 +The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received foo +The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received ./foo -- cgit v1.2.3