Skip to content

Exeption with wrong message #525

@puzrin

Description

@puzrin
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions