From 3863aaf8ae183685759bfdae037c36d05223e06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 5 Dec 2022 17:11:57 +0100 Subject: [PATCH] refactor: remove references to Deno.core in bootstrap code (#16937) Prerequisite for https://github.com/denoland/deno/pull/16881 --- cli/js/40_testing.js | 4 ++-- ext/node/02_require.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(