Revision: 20539
Author: [email protected]
Date: Mon Apr 7 11:11:25 2014 UTC
Log: Deprecate Context::HasOutOfMemoryException.
[email protected]
Review URL: https://codereview.chromium.org/225723004
http://code.google.com/p/v8/source/detail?r=20539
Modified:
/branches/bleeding_edge/include/v8.h
=======================================
--- /branches/bleeding_edge/include/v8.h Mon Apr 7 09:41:13 2014 UTC
+++ /branches/bleeding_edge/include/v8.h Mon Apr 7 11:11:25 2014 UTC
@@ -5274,8 +5274,13 @@
*/
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();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.