Commit b5c51fdb authored by Evan Lucas's avatar Evan Lucas Committed by James M Snell
Browse files

util: fix check for Array constructor

In the event an Array is created in a Debug context, the constructor
will be Array, but !== Array. This adds a check
constructor.name === 'Array' to handle edge cases like that.

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


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 546e8333
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