Browse Source

Fix anonymous function name in cover assignment (#3325)

pull/3331/head
raskad 1 year ago committed by GitHub
parent
commit
ebb40aeb14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      boa_parser/src/parser/expression/assignment/mod.rs

2
boa_parser/src/parser/expression/assignment/mod.rs

@ -241,7 +241,7 @@ where
cursor.set_goal(InputElement::RegExp);
if let Some(target) = AssignTarget::from_expression(&lhs, cursor.strict()) {
if let AssignTarget::Identifier(ident) = target {
if let Expression::Identifier(ident) = lhs {
self.name = Some(ident);
}
let expr = self.parse(cursor, interner)?;

Loading…
Cancel
Save