Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index a2c35f8415cb2d3a99b440c467be54759bf80934..c101fd160c6647829f983717ad9ac4eaafd712ab 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -12,13 +12,15 @@ |
* For other documentation see http://code.google.com/apis/v8/ |
*/ |
-#ifndef V8_H_ |
-#define V8_H_ |
+#ifndef INCLUDE_V8_H_ |
+#define INCLUDE_V8_H_ |
#include <stddef.h> |
#include <stdint.h> |
#include <stdio.h> |
+#include <string> |
+ |
#include "v8-version.h" // NOLINT(build/include) |
#include "v8config.h" // NOLINT(build/include) |
@@ -2456,8 +2458,8 @@ class V8_EXPORT Symbol : public Name { |
Local<Value> Name() const; |
// Create a symbol. If name is not empty, it will be used as the description. |
- static Local<Symbol> New( |
- Isolate *isolate, Local<String> name = Local<String>()); |
+ static Local<Symbol> New(Isolate* isolate, |
+ Local<String> name = Local<String>()); |
// Access global symbol registry. |
// Note that symbols created this way are never collected, so |
@@ -3347,10 +3349,11 @@ class V8_EXPORT Promise : public Object { |
* an argument. If the promise is already resolved/rejected, the handler is |
* invoked at the end of turn. |
*/ |
- V8_DEPRECATE_SOON("Use maybe version", |
+ V8_DEPRECATE_SOON("Use maybe version of Then", |
Local<Promise> Chain(Local<Function> handler)); |
- V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain(Local<Context> context, |
- Local<Function> handler); |
+ V8_DEPRECATE_SOON("Use Then", |
+ V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain( |
+ Local<Context> context, Local<Function> handler)); |
V8_DEPRECATE_SOON("Use maybe version", |
Local<Promise> Catch(Local<Function> handler)); |
@@ -7171,7 +7174,7 @@ class Internals { |
V8_INLINE static void SetEmbedderData(v8::Isolate* isolate, |
uint32_t slot, |
void* data) { |
- uint8_t *addr = reinterpret_cast<uint8_t *>(isolate) + |
+ uint8_t* addr = reinterpret_cast<uint8_t*>(isolate) + |
kIsolateEmbedderDataOffset + slot * kApiPointerSize; |
*reinterpret_cast<void**>(addr) = data; |
} |
@@ -8474,4 +8477,4 @@ void V8::VisitHandlesForPartialDependence(Isolate* isolate, |
#undef TYPE_CHECK |
-#endif // V8_H_ |
+#endif // INCLUDE_V8_H_ |