@@ -571,7 +571,7 @@ Padded_String unimplemented_token_code(u8"]"_sv);
571571#if defined(GTEST_HAS_DEATH_TEST) && GTEST_HAS_DEATH_TEST
572572TEST_F (Test_Parse, unimplemented_token_crashes_SLOW) {
573573 auto check = [&] {
574- Parser p (&unimplemented_token_code, javascript_options);
574+ Parser p (&unimplemented_token_code, & this -> memory_ , javascript_options);
575575 Spy_Visitor v;
576576 p.parse_and_visit_module (v);
577577 };
@@ -581,7 +581,7 @@ TEST_F(Test_Parse, unimplemented_token_crashes_SLOW) {
581581
582582TEST_F (Test_Parse, unimplemented_token_doesnt_crash_if_caught) {
583583 {
584- Parser p (&unimplemented_token_code, javascript_options);
584+ Parser p (&unimplemented_token_code, & this -> memory_ , javascript_options);
585585 Spy_Visitor v;
586586 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
587587 EXPECT_FALSE (ok);
@@ -597,7 +597,7 @@ TEST_F(Test_Parse, unimplemented_token_doesnt_crash_if_caught) {
597597TEST_F (Test_Parse, unimplemented_token_returns_to_innermost_handler) {
598598 {
599599 Padded_String code (u8" hello world" _sv);
600- Parser p (&code, javascript_options);
600+ Parser p (&code, & this -> memory_ , javascript_options);
601601 volatile bool inner_catch_returned = false ;
602602 bool outer_ok = p.catch_fatal_parse_errors ([&] {
603603 bool inner_ok = p.catch_fatal_parse_errors (
@@ -618,7 +618,7 @@ TEST_F(Test_Parse,
618618 unimplemented_token_after_handler_ends_returns_to_outer_handler) {
619619 {
620620 Padded_String code (u8" hello world" _sv);
621- Parser p (&code, javascript_options);
621+ Parser p (&code, & this -> memory_ , javascript_options);
622622 volatile bool inner_catch_returned = false ;
623623 bool outer_ok = p.catch_fatal_parse_errors ([&] {
624624 bool inner_ok = p.catch_fatal_parse_errors ([] {
@@ -640,7 +640,7 @@ TEST_F(Test_Parse,
640640TEST_F (Test_Parse, unimplemented_token_rolls_back_parser_depth) {
641641 {
642642 Padded_String code (u8" hello world" _sv);
643- Parser p (&code, javascript_options);
643+ Parser p (&code, & this -> memory_ , javascript_options);
644644 volatile bool inner_catch_returned = false ;
645645 bool outer_ok = p.catch_fatal_parse_errors ([&] {
646646 Parser::Depth_Guard outer_g (&p);
@@ -662,7 +662,7 @@ TEST_F(Test_Parse, unimplemented_token_rolls_back_parser_depth) {
662662TEST_F (Test_Parse, unimplemented_token_is_reported_on_outer_diag_reporter) {
663663 {
664664 Padded_String code (u8" hello world" _sv);
665- Parser p (&code, javascript_options);
665+ Parser p (&code, & this -> memory_ , javascript_options);
666666
667667 Parser_Transaction transaction = p.begin_transaction ();
668668 bool ok = p.catch_fatal_parse_errors (
@@ -771,7 +771,7 @@ TEST_F(Test_No_Overflow, parser_depth_limit_not_exceeded) {
771771 }) {
772772 Padded_String code (u8" return " + jsx);
773773 SCOPED_TRACE (code);
774- Parser p (&code, jsx_options);
774+ Parser p (&code, & this -> memory_ , jsx_options);
775775 Spy_Visitor v;
776776 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
777777 EXPECT_TRUE (ok);
@@ -783,7 +783,7 @@ TEST_F(Test_No_Overflow, parser_depth_limit_not_exceeded) {
783783 }) {
784784 Padded_String code (concat (u8" let x: " _sv, type, u8" ;" _sv));
785785 SCOPED_TRACE (code);
786- Parser p (&code, typescript_options);
786+ Parser p (&code, & this -> memory_ , typescript_options);
787787 Spy_Visitor v;
788788 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
789789 EXPECT_TRUE (ok);
@@ -838,7 +838,7 @@ TEST_F(Test_Overflow, parser_depth_limit_exceeded) {
838838 }) {
839839 Padded_String code (exps);
840840 SCOPED_TRACE (code);
841- Parser p (&code, javascript_options);
841+ Parser p (&code, & this -> memory_ , javascript_options);
842842 Spy_Visitor v;
843843 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
844844 EXPECT_FALSE (ok);
@@ -885,7 +885,7 @@ TEST_F(Test_Overflow, parser_depth_limit_exceeded) {
885885 }) {
886886 Padded_String code (concat (u8" return " _sv, jsx));
887887 SCOPED_TRACE (code);
888- Parser p (&code, jsx_options);
888+ Parser p (&code, & this -> memory_ , jsx_options);
889889 Spy_Visitor v;
890890 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
891891 EXPECT_FALSE (ok);
@@ -900,7 +900,7 @@ TEST_F(Test_Overflow, parser_depth_limit_exceeded) {
900900 }) {
901901 Padded_String code (concat (u8" let x: " _sv, type, u8" ;" _sv));
902902 SCOPED_TRACE (code);
903- Parser p (&code, typescript_options);
903+ Parser p (&code, & this -> memory_ , typescript_options);
904904 Spy_Visitor v;
905905 bool ok = p.parse_and_visit_module_catching_fatal_parse_errors (v);
906906 EXPECT_FALSE (ok);
0 commit comments