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