Commit 089d6886 authored by Evan Lucas's avatar Evan Lucas
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 77a10ed0
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