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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8Compat_h 5 #ifndef V8Compat_h
6 #define V8Compat_h 6 #define V8Compat_h
7 7
8 #include <v8.h> 8 #include <v8.h>
9 9
10 #if V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1) 10 #if V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1)
11 namespace v8 { 11 namespace v8 {
12 12
13 // In standalone V8 inspector this is expected to be noop anyways... 13 // In standalone V8 inspector this is expected to be noop anyways...
14 class V8_EXPORT MicrotasksScope { 14 class V8_EXPORT MicrotasksScope {
15 public: 15 public:
16 enum Type { kRunMicrotasks, kDoNotRunMicrotasks }; 16 enum Type { kRunMicrotasks, kDoNotRunMicrotasks };
17 17
18 MicrotasksScope(Isolate* isolate, Type type) 18 MicrotasksScope(Isolate* isolate, Type type)
19 { 19 {
20 // No-op 20 // No-op
21 } 21 }
22 }; 22 };
23 23
24 } // namespace v8 24 } // namespace v8
25 25 #define V8_FUNCTION_NEW_REMOVE_PROTOTYPE(context, callback, data, length) \
26 v8::Function::New((context), (callback), (data), (length))
27 #else
28 #define V8_FUNCTION_NEW_REMOVE_PROTOTYPE(context, callback, data, length) \
29 v8::Function::New((context), (callback), (data), (length), v8::ConstructorBe havior::kThrow)
26 #endif // V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1 ) 30 #endif // V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1 )
27 31
28 #endif // V8Compat_h 32 #endif // V8Compat_h
OLDNEW
« 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