1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-24 16:08:03 -05:00
denoland-deno/cli/ops/compiler.rs

14 lines
410 B
Rust
Raw Normal View History

2020-01-02 15:13:47 -05:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::state::State;
use deno_core::CoreIsolate;
2019-08-26 14:50:21 +02:00
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(
2020-02-25 09:14:27 -05:00
"op_fetch_asset",
2020-07-20 19:49:57 -04:00
crate::op_fetch_asset::op_fetch_asset(custom_assets),
);
}