From 2e74f164b6dcf0ecbf8dd38fba9fae550d784bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 13 Dec 2020 19:45:53 +0100 Subject: refactor: deno_runtime crate (#8640) This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl --- cli/rt/40_error_stack.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 cli/rt/40_error_stack.js (limited to 'cli/rt/40_error_stack.js') diff --git a/cli/rt/40_error_stack.js b/cli/rt/40_error_stack.js deleted file mode 100644 index da2ee51f3..000000000 --- a/cli/rt/40_error_stack.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -((window) => { - const core = window.Deno.core; - - function opFormatDiagnostics(diagnostics) { - return core.jsonOpSync("op_format_diagnostic", diagnostics); - } - - function opApplySourceMap(location) { - const res = core.jsonOpSync("op_apply_source_map", location); - return { - fileName: res.fileName, - lineNumber: res.lineNumber, - columnNumber: res.columnNumber, - }; - } - - window.__bootstrap.errorStack = { - opApplySourceMap, - opFormatDiagnostics, - }; -})(this); -- cgit v1.2.3