From 63293a90e1503aa9c18ce5f89ebc6d5c066f09bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 22 Jan 2020 23:58:13 +0100 Subject: refactor: snapshotting (#3753) --- cli/js/compiler_bootstrap.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cli/js/compiler_bootstrap.ts') diff --git a/cli/js/compiler_bootstrap.ts b/cli/js/compiler_bootstrap.ts index 6de978750..31e5774bf 100644 --- a/cli/js/compiler_bootstrap.ts +++ b/cli/js/compiler_bootstrap.ts @@ -3,7 +3,7 @@ import { ASSETS, Host } from "./compiler_host.ts"; import { core } from "./core.ts"; import * as dispatch from "./dispatch.ts"; -import { sendSync } from "./dispatch_json.ts"; +import { getAsset } from "./compiler_util.ts"; // This registers ops that are available during the snapshotting process. const ops = core.ops(); @@ -26,9 +26,9 @@ export const oldProgram = ts.createProgram({ host }); -/** A module loader which is concatenated into bundle files. We read all static - * assets during the snapshotting process, which is why this is located in - * compiler_bootstrap. */ -export const bundleLoader = sendSync(dispatch.OP_FETCH_ASSET, { - name: "bundle_loader.js" -}); +/** A module loader which is concatenated into bundle files. + * + * We read all static assets during the snapshotting process, which is + * why this is located in compiler_bootstrap. + **/ +export const bundleLoader = getAsset("bundle_loader.js"); -- cgit v1.2.3