Skip to content

Commit

Permalink
Merge pull request #10 from takayama-lily/master
Browse files Browse the repository at this point in the history
fix function in vm
  • Loading branch information
xpl committed Aug 3, 2020
2 parents 0fcd4e8 + b2a656d commit 2835221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/string.ify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion string.ify.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const configure = cfg => {

return customFormat }

else if (x instanceof Function) {
else if (typeof x === 'function') {
return (cfg.pure ? x.toString () : (x.name ? ('<function:' + x.name + '>') : '<function>')) }

else if (typeof x === 'string') {
Expand Down

0 comments on commit 2835221

Please sign in to comment.