nodeca / js-yaml

JavaScript YAML parser and dumper. Very fast.

Home Page:http://nodeca.github.io/js-yaml/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exeption with wrong message

puzrin opened this issue · comments

node -e 'console.log(require("js-yaml").safeLoad("!<?\u0000[0]"))'

js-yaml/lib/js-yaml/type/int.js:90
    if (!isDecCode(data.charCodeAt(index))) {
                        ^

TypeError: data.charCodeAt is not a function

I guess it should throw, but normal message.