Skip to content

Commit 666605a

Browse files
committed
Merge pull request #128 from az7arul/issue-127
prevent 'to: wrong argument' output caused by shelljs
2 parents 9ccba0e + 61ef685 commit 666605a

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
@@ -702,7 +702,8 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
702702
var name = names[i];
703703
var func = __nsp[name];
704704
try {
705-
var type = typeof func.apply('teststring', []);
705+
// #127: pass extra parameter to keep shelljs happy
706+
var type = typeof func.apply('test', ['string']);
706707
retObj[name] = type;
707708
} catch (e) {}
708709
}

0 commit comments

Comments
 (0)