mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
feat(repl): Don't type check when importing modules (#14112)
This commit is contained in:
parent
f5f7b56aca
commit
e411747e24
1 changed files with 5 additions and 0 deletions
|
@ -2341,6 +2341,8 @@ fn lint_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn repl_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
|
fn repl_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
|
||||||
|
// Use no-check by default for the REPL
|
||||||
|
flags.typecheck_mode = TypecheckMode::None;
|
||||||
runtime_args_parse(flags, matches, false, true);
|
runtime_args_parse(flags, matches, false, true);
|
||||||
unsafely_ignore_certificate_errors_parse(flags, matches);
|
unsafely_ignore_certificate_errors_parse(flags, matches);
|
||||||
handle_repl_flags(
|
handle_repl_flags(
|
||||||
|
@ -3789,6 +3791,7 @@ mod tests {
|
||||||
allow_write: Some(vec![]),
|
allow_write: Some(vec![]),
|
||||||
allow_ffi: Some(vec![]),
|
allow_ffi: Some(vec![]),
|
||||||
allow_hrtime: true,
|
allow_hrtime: true,
|
||||||
|
typecheck_mode: TypecheckMode::None,
|
||||||
..Flags::default()
|
..Flags::default()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -4437,6 +4440,7 @@ mod tests {
|
||||||
allow_write: Some(vec![]),
|
allow_write: Some(vec![]),
|
||||||
allow_ffi: Some(vec![]),
|
allow_ffi: Some(vec![]),
|
||||||
allow_hrtime: true,
|
allow_hrtime: true,
|
||||||
|
typecheck_mode: TypecheckMode::None,
|
||||||
..Flags::default()
|
..Flags::default()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -4515,6 +4519,7 @@ mod tests {
|
||||||
allow_write: Some(vec![]),
|
allow_write: Some(vec![]),
|
||||||
allow_ffi: Some(vec![]),
|
allow_ffi: Some(vec![]),
|
||||||
allow_hrtime: true,
|
allow_hrtime: true,
|
||||||
|
typecheck_mode: TypecheckMode::None,
|
||||||
..Flags::default()
|
..Flags::default()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue