Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 1b5ce957bf16699f147b934fe8883c3a5ced2379..76958c199b6c20947bc07a0dbb861b737c804386 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -7944,6 +7944,9 @@ class AccessorPair: public Struct { |
| } |
| } |
| + // Same as get, but returns undefined instead of the hole. |
| + Object* SafeGet(AccessorComponent component); |
|
ulan
2012/03/07 09:59:34
Consider marking this function as inline.
|
| + |
| bool ContainsAccessor() { |
| return IsJSAccessor(getter()) || IsJSAccessor(setter()); |
| } |