1
0
Fork 0
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:
Luca Casonato 2020-09-27 11:16:18 -07:00 committed by GitHub
parent 249d82099e
commit ebcb032c6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View file

@ -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,

View file

@ -0,0 +1 @@
require("invalid module specifier");

View file

@ -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;