diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js index 4dd24a2860..9896df34b3 100644 --- a/cli/js/40_testing.js +++ b/cli/js/40_testing.js @@ -708,7 +708,7 @@ ); } testDesc.origin = getTestOrigin(); - const jsError = Deno.core.destructureError(new Error()); + const jsError = core.destructureError(new Error()); testDesc.location = { fileName: jsError.frames[1].fileName, lineNumber: jsError.frames[1].lineNumber, @@ -1290,7 +1290,7 @@ stepDesc.sanitizeResources ??= desc.sanitizeResources; stepDesc.sanitizeExit ??= desc.sanitizeExit; stepDesc.origin = getTestOrigin(); - const jsError = Deno.core.destructureError(new Error()); + const jsError = core.destructureError(new Error()); stepDesc.location = { fileName: jsError.frames[1].fileName, lineNumber: jsError.frames[1].lineNumber, diff --git a/ext/node/02_require.js b/ext/node/02_require.js index b5117042de..53921c2425 100644 --- a/ext/node/02_require.js +++ b/ext/node/02_require.js @@ -353,7 +353,7 @@ } } - const isDenoDirPackage = Deno.core.ops.op_require_is_deno_dir_package( + const isDenoDirPackage = core.ops.op_require_is_deno_dir_package( curPath, ); const isRelative = ops.op_require_is_request_relative(