Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index bfd17dbb8dc877da56891f1ee5c89cc1688b3ea8..acc9c82d3ecf40d9eeed6eb0d0d4d9ee233a3b33 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2768,9 +2768,7 @@ bool Value::IsSharedArrayBuffer() const { |
} |
-bool Value::IsObject() const { |
- return Utils::OpenHandle(this)->IsJSObject(); |
-} |
+bool Value::IsObject() const { return Utils::OpenHandle(this)->IsJSReceiver(); } |
bool Value::IsNumber() const { |