Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 2d2bd1f23b8b11d80b6c1bc190a856b43b15ac99..78328b74fbcaa02aff29044bb5eb08a70e6f31f4 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -600,6 +600,13 @@ void V8::ToLocalEmpty() { |
} |
+void V8::InternalFieldOutOfBounds(int index) { |
+ Utils::ApiCheck(0 <= index && index < kInternalFieldsInWeakCallback, |
+ "WeakCallbackInfo::GetInternalField", |
+ "Internal field out of bounds."); |
+} |
+ |
+ |
// --- H a n d l e s --- |