mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
fix: no check recognizes require (#7720)
This commit is contained in:
parent
249d82099e
commit
ebcb032c6b
3 changed files with 11 additions and 1 deletions
|
@ -270,7 +270,10 @@ impl Module {
|
|||
|
||||
// Parse out all the syntactical dependencies for a module
|
||||
let dependencies = parsed_module.analyze_dependencies();
|
||||
for desc in dependencies.iter() {
|
||||
for desc in dependencies
|
||||
.iter()
|
||||
.filter(|desc| desc.kind != DependencyKind::Require)
|
||||
{
|
||||
let location = Location {
|
||||
filename: self.specifier.to_string(),
|
||||
col: desc.col,
|
||||
|
|
1
cli/tests/ignore_require.js
Normal file
1
cli/tests/ignore_require.js
Normal file
|
@ -0,0 +1 @@
|
|||
require("invalid module specifier");
|
|
@ -2516,6 +2516,12 @@ itest!(info_type_import {
|
|||
output: "info_type_import.out",
|
||||
});
|
||||
|
||||
itest!(ignore_require {
|
||||
args: "cache --reload --no-check ignore_require.js",
|
||||
output_str: Some(""),
|
||||
exit_code: 0,
|
||||
});
|
||||
|
||||
#[test]
|
||||
fn cafile_env_fetch() {
|
||||
use deno_core::url::Url;
|
||||
|
|
Loading…
Reference in a new issue