summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deps/v8/include/v8-version.h2
-rw-r--r--deps/v8/src/inspector/custom-preview.cc2
-rw-r--r--deps/v8/src/inspector/custom-preview.h6
-rw-r--r--deps/v8/src/inspector/injected-script.cc2
4 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/include/v8-version.h b/deps/v8/include/v8-version.h
index adac5911c8..0406f65b08 100644
--- a/deps/v8/include/v8-version.h
+++ b/deps/v8/include/v8-version.h
@@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 7
#define V8_MINOR_VERSION 7
#define V8_BUILD_NUMBER 299
-#define V8_PATCH_LEVEL 10
+#define V8_PATCH_LEVEL 11
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
diff --git a/deps/v8/src/inspector/custom-preview.cc b/deps/v8/src/inspector/custom-preview.cc
index f56562341c..77cd6dc5f5 100644
--- a/deps/v8/src/inspector/custom-preview.cc
+++ b/deps/v8/src/inspector/custom-preview.cc
@@ -242,10 +242,10 @@ void bodyCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
} // anonymous namespace
void generateCustomPreview(int sessionId, const String16& groupName,
- v8::Local<v8::Context> context,
v8::Local<v8::Object> object,
v8::MaybeLocal<v8::Value> maybeConfig, int maxDepth,
std::unique_ptr<CustomPreview>* preview) {
+ v8::Local<v8::Context> context = object->CreationContext();
v8::Isolate* isolate = context->GetIsolate();
v8::MicrotasksScope microtasksScope(isolate,
v8::MicrotasksScope::kDoNotRunMicrotasks);
diff --git a/deps/v8/src/inspector/custom-preview.h b/deps/v8/src/inspector/custom-preview.h
index 1ae8e25a4c..1e8c74a154 100644
--- a/deps/v8/src/inspector/custom-preview.h
+++ b/deps/v8/src/inspector/custom-preview.h
@@ -13,9 +13,9 @@ namespace v8_inspector {
const int kMaxCustomPreviewDepth = 20;
void generateCustomPreview(
- int sessionId, const String16& groupName, v8::Local<v8::Context> context,
- v8::Local<v8::Object> object, v8::MaybeLocal<v8::Value> config,
- int maxDepth, std::unique_ptr<protocol::Runtime::CustomPreview>* preview);
+ int sessionId, const String16& groupName, v8::Local<v8::Object> object,
+ v8::MaybeLocal<v8::Value> config, int maxDepth,
+ std::unique_ptr<protocol::Runtime::CustomPreview>* preview);
} // namespace v8_inspector
diff --git a/deps/v8/src/inspector/injected-script.cc b/deps/v8/src/inspector/injected-script.cc
index 1edd559e4e..ad91a8e65e 100644
--- a/deps/v8/src/inspector/injected-script.cc
+++ b/deps/v8/src/inspector/injected-script.cc
@@ -458,7 +458,7 @@ Response InjectedScript::wrapObjectMirror(
if (!response.isSuccess()) return response;
if (customPreviewEnabled && value->IsObject()) {
std::unique_ptr<protocol::Runtime::CustomPreview> customPreview;
- generateCustomPreview(sessionId, groupName, context, value.As<v8::Object>(),
+ generateCustomPreview(sessionId, groupName, value.As<v8::Object>(),
customPreviewConfig, maxCustomPreviewDepth,
&customPreview);
if (customPreview) (*result)->setCustomPreview(std::move(customPreview));