| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index fdd83e75da830603e45a358f6e51f15782d1d049..dc84ea5f7aeea081b35ddb78b1dd57582908c357 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -680,6 +680,10 @@ bool HeapObject::IsJSObject() const {
|
|
|
| bool HeapObject::IsJSProxy() const { return map()->IsJSProxyMap(); }
|
|
|
| +bool HeapObject::IsJSError() const {
|
| + return map()->instance_type() == JS_ERROR_TYPE;
|
| +}
|
| +
|
| TYPE_CHECKER(JSSet, JS_SET_TYPE)
|
| TYPE_CHECKER(JSMap, JS_MAP_TYPE)
|
| TYPE_CHECKER(JSSetIterator, JS_SET_ITERATOR_TYPE)
|
|
|