mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Follow up: A opening bracket { was added; Added "function()->explicitName()" instead of "function()->name()"
Issue #78
This commit is contained in:
parent
2c3fecf0f3
commit
1fd083e81c
2 changed files with 2 additions and 2 deletions
|
|
@ -5158,7 +5158,7 @@ BytecodeEmitter::emitSingleDeclaration(ParseNode* declList, ParseNode* decl,
|
|||
if (!initializer && declList->isKind(PNK_VAR))
|
||||
return true;
|
||||
|
||||
auto emitRhs = [initializer, declList, decl](BytecodeEmitter* bce, const NameLocation&, bool)
|
||||
auto emitRhs = [initializer, declList, decl](BytecodeEmitter* bce, const NameLocation&, bool) {
|
||||
if (!initializer) {
|
||||
// Lexical declarations are initialized to undefined without an
|
||||
// initializer.
|
||||
|
|
|
|||
|
|
@ -838,7 +838,7 @@ Parser<ParseHandler>::reportBadReturn(Node pn, ParseReportKind kind,
|
|||
unsigned errnum, unsigned anonerrnum)
|
||||
{
|
||||
JSAutoByteString name;
|
||||
if (JSAtom* atom = pc->functionBox()->function()->name()) {
|
||||
if (JSAtom* atom = pc->functionBox()->function()->explicitName()) {
|
||||
if (!AtomToPrintableString(context, atom, &name))
|
||||
return false;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue