From 0a78bfb836f520d3709a32c8a978d08d33198d83 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Thu, 16 Jan 2020 16:42:58 -0800 Subject: Add Deno.symbols and move internal fields for test (#3693) --- cli/js/error_stack.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/js/error_stack.ts') diff --git a/cli/js/error_stack.ts b/cli/js/error_stack.ts index 824fa6f87..7f19773bd 100644 --- a/cli/js/error_stack.ts +++ b/cli/js/error_stack.ts @@ -4,6 +4,7 @@ import * as dispatch from "./dispatch.ts"; import { sendSync } from "./dispatch_json.ts"; import { assert } from "./util.ts"; +import { exposeForTest } from "./internals.ts"; export interface Location { /** The full url for the module, e.g. `file://some/file.ts` or @@ -271,3 +272,5 @@ function prepareStackTrace( export function setPrepareStackTrace(ErrorConstructor: typeof Error): void { ErrorConstructor.prepareStackTrace = prepareStackTrace; } + +exposeForTest("setPrepareStackTrace", setPrepareStackTrace); -- cgit v1.2.3