mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Don't use null DFS for binding_name parameters in ClassExpression
This commit is contained in:
parent
d558468d03
commit
026c1caba0
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/DanShaders
Commit: 026c1caba0
Pull-request: https://github.com/SerenityOS/serenity/pull/22926
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/davidot ✅
3 changed files with 9 additions and 9 deletions
|
@ -611,7 +611,7 @@ inline ThrowCompletionOr<ECMAScriptFunctionObject*> new_class(VM& vm, Value supe
|
|||
auto* class_environment = vm.lexical_environment();
|
||||
vm.running_execution_context().lexical_environment = interpreter.saved_lexical_environment_stack().take_last();
|
||||
|
||||
DeprecatedFlyString binding_name;
|
||||
Optional<DeprecatedFlyString> binding_name;
|
||||
DeprecatedFlyString class_name;
|
||||
if (!class_expression.has_name() && lhs_name.has_value()) {
|
||||
class_name = interpreter.current_executable().get_identifier(lhs_name.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue