| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index b1ec504031cdf0fdf2401734caedd6327044d6c1..b3bb6732b2d273a4a9928a57e85f3dd169ee0f6e 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -5274,8 +5274,13 @@ class V8_EXPORT Context {
|
| */
|
| void Exit();
|
|
|
| - /** Returns true if the context has experienced an out of memory situation. */
|
| - bool HasOutOfMemoryException() { return false; }
|
| + /**
|
| + * Returns true if the context has experienced an out of memory situation.
|
| + * Since V8 always treats OOM as fatal error, this can no longer return true.
|
| + * Therefore this is now deprecated.
|
| + * */
|
| + V8_DEPRECATED("This can no longer happen. OOM is a fatal error.",
|
| + bool HasOutOfMemoryException()) { return false; }
|
|
|
| /** Returns an isolate associated with a current context. */
|
| v8::Isolate* GetIsolate();
|
|
|