mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
refactor(cli): rename GlobalState to ProgramState (#7914)
This commit is contained in:
parent
000ac5c40b
commit
0bd3cea0ff
15 changed files with 187 additions and 186 deletions
|
@ -588,16 +588,16 @@ impl ModuleGraphLoader {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::global_state::GlobalState;
|
||||
use crate::program_state::ProgramState;
|
||||
use deno_core::serde_json;
|
||||
use deno_core::serde_json::json;
|
||||
|
||||
async fn build_graph(
|
||||
module_specifier: &ModuleSpecifier,
|
||||
) -> Result<ModuleGraph, AnyError> {
|
||||
let global_state = GlobalState::new(Default::default()).unwrap();
|
||||
let program_state = ProgramState::new(Default::default()).unwrap();
|
||||
let mut graph_loader = ModuleGraphLoader::new(
|
||||
global_state.file_fetcher.clone(),
|
||||
program_state.file_fetcher.clone(),
|
||||
None,
|
||||
Permissions::allow_all(),
|
||||
false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue