Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Global option to ignore conditions in immediately executing function arguments #222

Open
JeroMiya opened this issue Jul 18, 2014 · 1 comment

Comments

@JeroMiya
Copy link

OK, this issue was rejected:
#221

Here's another attempt. Maybe a more pragmatic solution? How about a global or scoped option to automatically ignore branches in the arguments of an immediately executing function declaration. This is most commonly used in the internal module pattern in JavaScript, and by various code generation tools.

Example:

/* istanbul ignore iefa */
var app;
(function(app) {
  (function(common) {
    common.Foo = (function Foo() { this.foo = 'foo'; } return Foo; }());
  })(app.common || (app.common = {})); // these branches ignored
})(app || app = {})); // these branches ignored
@michikono
Copy link

++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants