Skip to content

Commit 1796089

Browse files
committed
LibJS: Demote a VERIFY in run_executable() to ASSERT
1 parent 62781f4 commit 1796089

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Libraries/LibJS/Bytecode/Interpreter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,7 @@ ThrowCompletionOr<Value> Interpreter::run_executable(ExecutionContext& context,
714714
context.global_declarative_environment = realm().global_environment().declarative_record();
715715
context.identifier_table = executable.identifier_table->identifiers();
716716

717-
u32 registers_and_constants_and_locals_count = executable.number_of_registers + executable.constants.size() + executable.local_variable_names.size();
718-
VERIFY(registers_and_constants_and_locals_count <= context.registers_and_constants_and_locals_and_arguments_span().size());
717+
ASSERT(executable.registers_and_constants_and_locals_count <= context.registers_and_constants_and_locals_and_arguments_span().size());
719718

720719
context.registers_and_constants_and_locals_arguments = context.registers_and_constants_and_locals_and_arguments_span();
721720

0 commit comments

Comments
 (0)