Skip to content

Commit f669d19

Browse files
mralephcommit-bot@chromium.org
authored andcommitted
[VM] Fix RegExp_ExecuteMatch to return List<int> instead of List<dynamic>.
Fixes #31307 Bug: Change-Id: Ied39fd616a492d9872fe7676202e4dc497d1ee17 Reviewed-on: https://dart-review.googlesource.com/20780 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Vyacheslav Egorov <[email protected]>
1 parent 0af5298 commit f669d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/vm/regexp_assembler_ir.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ void IRRegExpMacroAssembler::GenerateSuccessBlock() {
241241
set_current_instruction(success_block_);
242242
TAG();
243243

244-
Value* type = Bind(new (Z) ConstantInstr(
245-
TypeArguments::ZoneHandle(Z, TypeArguments::null())));
244+
Value* type = Bind(new (Z) ConstantInstr(TypeArguments::ZoneHandle(
245+
Z, Isolate::Current()->object_store()->type_argument_int())));
246246
Value* length = Bind(Uint64Constant(saved_registers_count_));
247247
Value* array = Bind(new (Z) CreateArrayInstr(TokenPosition::kNoSource, type,
248248
length, GetNextDeoptId()));

0 commit comments

Comments
 (0)