mirror of
https://github.com/denoland/deno.git
synced 2025-01-26 00:47:50 -05:00
13 lines
410 B
Rust
13 lines
410 B
Rust
// 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),
|
|
);
|
|
}
|