Skip to content

Commit

Permalink
deps: add missing HandleScope in FieldType::PrintTo
Browse files Browse the repository at this point in the history
  • Loading branch information
hashseed committed Sep 17, 2018
1 parent b7661a8 commit 4e596b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.11',
'v8_embedder_string': '-node.12',

# Enable disassembler for `--print-code` v8 options
'v8_enable_disassembler': 1,
Expand Down
1 change: 1 addition & 0 deletions deps/v8/src/field-type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ void FieldType::PrintTo(std::ostream& os) {
os << "None";
} else {
DCHECK(IsClass());
HandleScope scope(Map::cast(this)->GetIsolate());
os << "Class(" << static_cast<void*>(*AsClass()) << ")";
}
}
Expand Down

0 comments on commit 4e596b2

Please sign in to comment.