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:Ben Noordhuis <info@bnoordhuis.nl>
parent
77a10ed0
Please register or sign in to comment