Skip to content

Commit

Permalink
Merge pull request #26 from whtsky/patch-1
Browse files Browse the repository at this point in the history
fix: add `var printWarning =` to comply with ES5 strict mode
  • Loading branch information
BerkeleyTrue authored May 29, 2018
2 parents 75d49aa + 677dcfa commit 76ccc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var __DEV__ = process.env.NODE_ENV !== 'production';
var warning = function() {};

if (__DEV__) {
function printWarning(format, args) {
var printWarning = function printWarning(format, args) {
var len = arguments.length;
args = new Array(len > 2 ? len - 2 : 0);
for (var key = 2; key < len; key++) {
Expand Down

0 comments on commit 76ccc65

Please sign in to comment.