From 8e2e17cdbe02847b19d8bc2002ba713d18e291b9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 21 May 2018 17:33:33 -0400 Subject: Support source maps for internal code. --- testdata/008_stack_trace.ts | 7 +++++++ testdata/subdir/mod1.ts | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 testdata/008_stack_trace.ts (limited to 'testdata') diff --git a/testdata/008_stack_trace.ts b/testdata/008_stack_trace.ts new file mode 100644 index 000000000..6aa0fcc3b --- /dev/null +++ b/testdata/008_stack_trace.ts @@ -0,0 +1,7 @@ +import { throwsError } from "./subdir/mod1.ts"; + +function foo() { + throwsError(); +} + +foo(); diff --git a/testdata/subdir/mod1.ts b/testdata/subdir/mod1.ts index c09755a3b..393535588 100644 --- a/testdata/subdir/mod1.ts +++ b/testdata/subdir/mod1.ts @@ -11,3 +11,7 @@ export function returnsFoo2(): string { export function printHello3(): void { printHello2(); } + +export function throwsError(): void { + throw Error("exception from mod1"); +} -- cgit v1.2.3