Skip to content

Commit 61ef685

Browse files
committed
fix to/toEnd: wrong argument error caused by shelljs
1 parent af0ace6 commit 61ef685

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/string.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
670670
var name = names[i];
671671
var func = __nsp[name];
672672
try {
673-
var type = typeof func.apply('teststring', []);
673+
// #127: pass extra parameter to keep shelljs happy
674+
var type = typeof func.apply('test', ['string']);
674675
retObj[name] = type;
675676
} catch (e) {}
676677
}

0 commit comments

Comments
 (0)