Commit 1c6f927b authored by Brian White's avatar Brian White Committed by Rod Vagg
Browse files

path: fix input type checking regression

Before b212be08, input types were not checked in some path functions
and the inputs were passed directly to `regexp.exec()` which
implicitly converts its argument to a string.

This commit both removes the type checking added in b212be08 and
adds string coercion for those functions.

PR-URL: https://github.com/nodejs/node/pull/5244


Reviewed-By: default avatarMyles Borins <myles.borins@gmail.com>
Reviewed-By: default avatarRod Vagg <rod@vagg.org>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarSakthipriyan Vairamani <thechargingvolcano@gmail.com>
parent 7684b0fc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment