Add Deno.symbols and move internal fields for test (#3693)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2020-01-16 16:42:58 -08:00 committed by Ry Dahl
parent cad7b3e4fe
commit 0a78bfb836
15 changed files with 92 additions and 25 deletions

View file

@ -2,7 +2,7 @@
import { test, assert } from "./test_util.ts";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { setPrepareStackTrace } = Deno as any;
const { setPrepareStackTrace } = Deno[Deno.symbols.internal] as any;
interface CallSite {
getThis(): unknown;