Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8Compat.h

Issue 2235753003: [DevTools] Older V8 compatibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/v8_inspector/V8Compat.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Compat.h b/third_party/WebKit/Source/platform/v8_inspector/V8Compat.h
index 0f5b12cbb6cb07e3f9fbf0f4ed9a52e7a7b3d511..d623da1a616f399069cb931362be63fd9dddcec3 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Compat.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8Compat.h
@@ -22,7 +22,11 @@ public:
};
} // namespace v8
-
+#define V8_FUNCTION_NEW_REMOVE_PROTOTYPE(context, callback, data, length) \
+ v8::Function::New((context), (callback), (data), (length))
+#else
+#define V8_FUNCTION_NEW_REMOVE_PROTOTYPE(context, callback, data, length) \
+ v8::Function::New((context), (callback), (data), (length), v8::ConstructorBehavior::kThrow)
#endif // V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1)
#endif // V8Compat_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698