diff options
author | Arthur Lafrance <38890624+a-lafrance@users.noreply.github.com> | 2022-04-08 04:51:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 13:51:01 +0200 |
commit | e411747e24b998c8178d0689aa7d63b0ad0e7046 (patch) | |
tree | d8bfa9bd86cdfeea57de56162dd44ac382a2d23d /cli | |
parent | f5f7b56acaf45a7f858db6f25ad5985ab4d8c7b9 (diff) |
feat(repl): Don't type check when importing modules (#14112)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/flags.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 5c97bcae4..c5c6eea6d 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -2341,6 +2341,8 @@ fn lint_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); unsafely_ignore_certificate_errors_parse(flags, matches); handle_repl_flags( @@ -3789,6 +3791,7 @@ mod tests { allow_write: Some(vec![]), allow_ffi: Some(vec![]), allow_hrtime: true, + typecheck_mode: TypecheckMode::None, ..Flags::default() } ); @@ -4437,6 +4440,7 @@ mod tests { allow_write: Some(vec![]), allow_ffi: Some(vec![]), allow_hrtime: true, + typecheck_mode: TypecheckMode::None, ..Flags::default() } ); @@ -4515,6 +4519,7 @@ mod tests { allow_write: Some(vec![]), allow_ffi: Some(vec![]), allow_hrtime: true, + typecheck_mode: TypecheckMode::None, ..Flags::default() } ); |