| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6b89512 commit 5d60adf
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 7 | |
| 12 | 12 | #define V8_MINOR_VERSION 7 | |
| 13 | 13 | #define V8_BUILD_NUMBER 299 | |
| 14 | - #define V8_PATCH_LEVEL 10 | ||
| 14 | + #define V8_PATCH_LEVEL 11 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -242,10 +242,10 @@ void bodyCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { | |||
| 242 | 242 | } // anonymous namespace | |
| 243 | 243 | ||
| 244 | 244 | void generateCustomPreview(int sessionId, const String16& groupName, | |
| 245 | - v8::Local<v8::Context> context, | ||
| 246 | 245 | v8::Local<v8::Object> object, | |
| 247 | 246 | v8::MaybeLocal<v8::Value> maybeConfig, int maxDepth, | |
| 248 | 247 | std::unique_ptr<CustomPreview>* preview) { | |
| 248 | + v8::Local<v8::Context> context = object->CreationContext(); | ||
| 249 | 249 | v8::Isolate* isolate = context->GetIsolate(); | |
| 250 | 250 | v8::MicrotasksScope microtasksScope(isolate, | |
| 251 | 251 | v8::MicrotasksScope::kDoNotRunMicrotasks); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,9 +13,9 @@ namespace v8_inspector { | |||
| 13 | 13 | const int kMaxCustomPreviewDepth = 20; | |
| 14 | 14 | ||
| 15 | 15 | void generateCustomPreview( | |
| 16 | - int sessionId, const String16& groupName, v8::Local<v8::Context> context, | ||
| 17 | - v8::Local<v8::Object> object, v8::MaybeLocal<v8::Value> config, | ||
| 18 | - int maxDepth, std::unique_ptr<protocol::Runtime::CustomPreview>* preview); | ||
| 16 | + int sessionId, const String16& groupName, v8::Local<v8::Object> object, | ||
| 17 | + v8::MaybeLocal<v8::Value> config, int maxDepth, | ||
| 18 | + std::unique_ptr<protocol::Runtime::CustomPreview>* preview); | ||
| 19 | 19 | ||
| 20 | 20 | } // namespace v8_inspector | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -458,7 +458,7 @@ Response InjectedScript::wrapObjectMirror( | |||
| 458 | 458 | if (!response.isSuccess()) return response; | |
| 459 | 459 | if (customPreviewEnabled && value->IsObject()) { | |
| 460 | 460 | std::unique_ptr<protocol::Runtime::CustomPreview> customPreview; | |
| 461 | - generateCustomPreview(sessionId, groupName, context, value.As<v8::Object>(), | ||
| 461 | + generateCustomPreview(sessionId, groupName, value.As<v8::Object>(), | ||
| 462 | 462 | customPreviewConfig, maxCustomPreviewDepth, | |
| 463 | 463 | &customPreview); | |
| 464 | 464 | if (customPreview) (*result)->setCustomPreview(std::move(customPreview)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments