summaryrefslogtreecommitdiff
path: root/js/v8_source_maps.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/v8_source_maps.ts')
-rw-r--r--js/v8_source_maps.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/js/v8_source_maps.ts b/js/v8_source_maps.ts
index d5feeb1c0..29091486c 100644
--- a/js/v8_source_maps.ts
+++ b/js/v8_source_maps.ts
@@ -2,16 +2,11 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
// Originated from source-map-support but has been heavily modified for deno.
-// Because NodeJS.CallSite and Error.prepareStackTrace are used we add a
-// dependency on the Node types.
-// TODO(ry) Ideally this triple slash directive should be removed as we only
-// need CallSite and Error.prepareStackTrace but nothing else.
-/// <reference types="node" />
-
import { SourceMapConsumer, MappedPosition } from "source-map";
import { RawSourceMap } from "source-map";
import * as base64 from "base64-js";
import { arrayToStr } from "./util";
+import { CallSite } from "./types";
const consumers = new Map<string, SourceMapConsumer>();
@@ -22,10 +17,6 @@ interface Options {
installPrepareStackTrace: boolean;
}
-interface CallSite extends NodeJS.CallSite {
- getScriptNameOrSourceURL(): string;
-}
-
interface Position {
source: string; // Filename
column: number;