2020-01-02 15:13:47 -05:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
2020-02-08 14:34:31 -05:00
|
|
|
use crate::state::State;
|
2020-04-23 05:51:07 -04:00
|
|
|
use deno_core::CoreIsolate;
|
2019-08-26 08:50:21 -04:00
|
|
|
|
2020-05-18 06:59:29 -04: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?
|
2019-10-11 14:41:54 -04:00
|
|
|
i.register_op(
|
2020-02-25 09:14:27 -05:00
|
|
|
"op_fetch_asset",
|
|
|
|
deno_typescript::op_fetch_asset(custom_assets),
|
2020-02-19 00:34:11 -05:00
|
|
|
);
|
2019-10-11 14:41:54 -04:00
|
|
|
}
|