Commit 0c91a835 authored by Nathan Rajlich's avatar Nathan Rajlich Committed by Ben Noordhuis
Browse files

util: isRegExp() should not call toString() on its argument

An overloaded toString() method may have side effects
so don't call it for a simple type check.

Back-port of 54b409d6 to the v0.4 branch.
parent 827b9c5f
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