summaryrefslogtreecommitdiff
path: root/cli/ops/compiler.rs
blob: 2e5842c0fd6ef1ff97fc4ebee28dd9fe95e37f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::state::State;
use deno_core::CoreIsolate;

pub fn init(i: &mut CoreIsolate, _s: &State) {
  let custom_assets = std::collections::HashMap::new();
  // TODO(ry) use None.
  // TODO(bartlomieju): is this op even required?
  i.register_op(
    "op_fetch_asset",
    deno_typescript::op_fetch_asset(custom_assets),
  );
}