Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 171623a28fa589981031a505de72a251f23e9a46..18baa087e0228b065b1821d1574cff66a37437ed 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -432,7 +432,10 @@ class WeakCallbackInfo { |
return internal_fields_[1]; |
} |
- bool IsFirstPass() const { return callback_ != nullptr; } |
+ V8_DEPRECATED("Not realiable once SetSecondPassCallback() was used.", |
+ bool IsFirstPass() const) { |
+ return callback_ != nullptr; |
+ } |
// When first called, the embedder MUST Reset() the Global which triggered the |
// callback. The Global itself is unusable for anything else. No v8 other api |