util: fix for inspecting promises
authorEvan Lucas <evanlucas@me.com>
Tue, 6 Oct 2015 01:44:09 +0000 (20:44 -0500)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 03:39:16 +0000 (20:39 -0700)
commite0fffca83629abf53c2fef2cc0905c58ff5fe2ec
tree3936366f06d8327ac881f990ee13463b37705c2f
parent18a8b2ec738d2b2d02a115cb2f075fdb0d0ff58b
util: fix for inspecting promises

The upgrade to v8 4.6 removes ObjectIsPromise. This change utilizes
v8::Value::IsPromise to verify that the argument is indeed a promise.

PR-URL: https://github.com/nodejs/node/pull/3221
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/util.js
src/node_util.cc