Skip to content

Commit 77cb4a4

Browse files
backesisheludko
authored andcommitted
[json_parser] Add missing isolate scope
Other methods in the same file already had it, but in this one spot it was missing. This blocked https://crrev.com/c/6458560.
1 parent d84c60f commit 77cb4a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/json_parser.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ std::optional<bool> JSONParser::GetTopLevelBoolField(std::string_view field) {
105105
std::optional<JSONParser::StringDict> JSONParser::GetTopLevelStringDict(
106106
std::string_view field) {
107107
Isolate* isolate = isolate_.get();
108+
v8::Isolate::Scope isolate_scope(isolate);
108109
v8::HandleScope handle_scope(isolate);
109110
Local<Context> context = context_.Get(isolate);
110111
Local<Object> content_object = content_.Get(isolate);

0 commit comments

Comments
 (0)