Skip to content

jedwards1211/babel-plugin-istanbul-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrates an issue with babel-plugin-istanbul and the following code:

let accept = true,
  value = [];
for (let i = 0, len = value.length, val, ftype, fext; i < len; ++i) {
  val = value[i];
  if (accept) {
    ftype = val.type || "";
    fext = "blahblah";
    if (
      !accept.some(function (type) {
        return typeof type === "string"
          ? type === (type.charAt(0) === "." ? fext : ftype)
          : type.test(ftype);
      })
    ) {
      console.log("foo");
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published