Skip to content

Commit

Permalink
fix: add var printWarning = to comply with ES5 strict mode
Browse files Browse the repository at this point in the history
close #25
  • Loading branch information
whtsky committed May 29, 2018
1 parent 75d49aa commit 677dcfa
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 677dcfa

Please sign in to comment.