mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibJS: Demote a VERIFY in run_executable() to ASSERT
This commit is contained in:
parent
62781f4818
commit
1796089f29
|
|
@ -714,8 +714,7 @@ ThrowCompletionOr<Value> Interpreter::run_executable(ExecutionContext& context,
|
||||||
context.global_declarative_environment = realm().global_environment().declarative_record();
|
context.global_declarative_environment = realm().global_environment().declarative_record();
|
||||||
context.identifier_table = executable.identifier_table->identifiers();
|
context.identifier_table = executable.identifier_table->identifiers();
|
||||||
|
|
||||||
u32 registers_and_constants_and_locals_count = executable.number_of_registers + executable.constants.size() + executable.local_variable_names.size();
|
ASSERT(executable.registers_and_constants_and_locals_count <= context.registers_and_constants_and_locals_and_arguments_span().size());
|
||||||
VERIFY(registers_and_constants_and_locals_count <= context.registers_and_constants_and_locals_and_arguments_span().size());
|
|
||||||
|
|
||||||
context.registers_and_constants_and_locals_arguments = context.registers_and_constants_and_locals_and_arguments_span();
|
context.registers_and_constants_and_locals_arguments = context.registers_and_constants_and_locals_and_arguments_span();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user