Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 1fb7adba67a6c079b5709732aa07e0ea0e84f229..319d468e4d61db43f529e8424139842d7bede8ba 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4168,9 +4168,8 @@ |
// try to lazy parse in the first place, we'll have to parse eagerly. |
Scanner::BookmarkScope bookmark(scanner()); |
if (is_lazily_parsed) { |
- // Deactivate bookmarks for now because they result |
- // race conditions while parsing. |
- Scanner::BookmarkScope* maybe_bookmark = nullptr; |
+ Scanner::BookmarkScope* maybe_bookmark = |
+ bookmark.Set() ? &bookmark : nullptr; |
SkipLazyFunctionBody(&materialized_literal_count, |
&expected_property_count, /*CHECK_OK*/ ok, |
maybe_bookmark); |