diff options
author | Evan Lucas <evanlucas@me.com> | 2015-10-05 16:29:27 -0500 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2015-10-05 20:24:08 -0500 |
commit | 089d6886178864b56fdd5dc2bcfc8f207aa4326c (patch) | |
tree | 23860c4efb0728f14037f83199f85ec5aced2311 /src/node_util.cc | |
parent | 77a10ed05f1e413818d29f07cbb268108b1f08fa (diff) | |
download | android-node-v8-089d6886178864b56fdd5dc2bcfc8f207aa4326c.tar.gz android-node-v8-089d6886178864b56fdd5dc2bcfc8f207aa4326c.tar.bz2 android-node-v8-089d6886178864b56fdd5dc2bcfc8f207aa4326c.zip |
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>
Diffstat (limited to 'src/node_util.cc')
0 files changed, 0 insertions, 0 deletions