Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #971 This is a perfect example of putting too many statements into a try-catch block. My bad. I was trying to keep the code simple, but it bit us here. This happens because we were using IS_PRODUCTION, but the order of the consts at the top are: const IS_PORTABLE = isPortable() const IS_PRODUCTION = isProduction() So we're inside of isPortable() and referring to IS_PRODUCTION before it's defined. This should have thrown an exception, since const does not allow use-before-define, but we're transforming to ES5 with Babel. Also, standard could have caught this, but we can't enable the use-before-define rule until this bug is fixed: standard/standard#636 Basically, a perfect storm.
- Loading branch information