From bdc97b3976786bb744a27e59b0f4f28554a682df Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 21 Aug 2019 20:42:48 -0400 Subject: Organize dispatch a bit (#2796) Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher. --- js/error_stack.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'js/error_stack.ts') diff --git a/js/error_stack.ts b/js/error_stack.ts index e97020687..003717a72 100644 --- a/js/error_stack.ts +++ b/js/error_stack.ts @@ -2,9 +2,7 @@ // Some of the code here is adapted directly from V8 and licensed under a BSD // style license available here: https://github.com/v8/v8/blob/24886f2d1c565287d33d71e4109a53bf0b54b75c/LICENSE.v8 -import * as msg from "gen/cli/msg_generated"; -import * as flatbuffers from "./flatbuffers"; -import * as dispatch from "./dispatch"; +import { sendSync, msg, flatbuffers } from "./dispatch_flatbuffers"; import { assert } from "./util"; export interface Location { @@ -77,7 +75,7 @@ function res(baseRes: msg.Base | null): Location { */ export function applySourceMap(location: Location): Location { const { filename, line, column } = location; - return res(dispatch.sendSync(...req(filename, line, column))); + return res(sendSync(...req(filename, line, column))); } /** Mutate the call site so that it returns the location, instead of its -- cgit v1.2.3