summaryrefslogtreecommitdiff
path: root/cli/ops/compiler.rs
blob: 9e56ef4362170aedd01c4c50f56a33a1674d51d8 (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",
    crate::op_fetch_asset::op_fetch_asset(custom_assets),
  );
}