diff options
author | ULIVZ <472590061@qq.com> | 2018-06-01 16:52:30 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-04 08:56:57 +0200 |
commit | 0639f9b7cc845579c59f5a792dcacb76bb28a749 (patch) | |
tree | d424d3c394eb09a630bb664d544f05dd9bd5fd66 /v8_source_maps.ts | |
parent | a315d1ef97f36603cb343280c530d1cb5a0130c8 (diff) |
Avoid apply and move arrayToStr to util
Diffstat (limited to 'v8_source_maps.ts')
-rw-r--r-- | v8_source_maps.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/v8_source_maps.ts b/v8_source_maps.ts index 170978984..7209e192c 100644 --- a/v8_source_maps.ts +++ b/v8_source_maps.ts @@ -4,6 +4,7 @@ // Originated from source-map-support but has been heavily modified for deno. import { SourceMapConsumer, MappedPosition } from "source-map"; import * as base64 from "base64-js"; +import { arrayToStr } from "./util"; const consumers = new Map<string, SourceMapConsumer>(); @@ -270,8 +271,3 @@ function mapEvalOrigin(origin: string): string { // Make sure we still return useful information if we didn't find anything return origin; } - -// TODO move to util? -function arrayToStr(ui8: Uint8Array): string { - return String.fromCharCode.apply(null, ui8); -} |