summaryrefslogtreecommitdiff
path: root/js/v8_source_maps.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-08-07 13:27:31 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-08-08 04:17:46 -0700
commit817380a2d9e42b118706638fe59c592f4bba06ef (patch)
tree30bbff8221390d0d880570a29c939542c5d0ff5d /js/v8_source_maps.ts
parenteda1c7b74a583a567c781fe13e63a80c2d4dcc3d (diff)
Generate declarations
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;