BUG=none
R=adamk@chromium.org, svenpanne@chromium.org
LOG=y
Review URL: https://codereview.chromium.org/
264333004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21250
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
*/
void SetAutorunMicrotasks(bool autorun);
+ /**
+ * Experimental: Returns whether the Microtask Work Queue is automatically
+ * run when the script call depth decrements to zero.
+ */
+ bool WillAutorunMicrotasks() const;
+
private:
template<class K, class V, class Traits> friend class PersistentValueMap;
}
+bool Isolate::WillAutorunMicrotasks() const {
+ return reinterpret_cast<const i::Isolate*>(this)->autorun_microtasks();
+}
+
+
String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj)
: str_(NULL), length_(0) {
i::Isolate* isolate = i::Isolate::Current();