summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 18:11:08 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 18:11:08 +0100
commit6085bfdcecc2529c1037f813e70583c2a776677d (patch)
treedef27736dea5d70ee45fc1db7a4026c5deddca70 /js
parentf084549e82ee1d6f58527c00e54b71daf674d6ed (diff)
downloadUXP-6085bfdcecc2529c1037f813e70583c2a776677d.tar
UXP-6085bfdcecc2529c1037f813e70583c2a776677d.tar.gz
UXP-6085bfdcecc2529c1037f813e70583c2a776677d.tar.lz
UXP-6085bfdcecc2529c1037f813e70583c2a776677d.tar.xz
UXP-6085bfdcecc2529c1037f813e70583c2a776677d.zip
Follow up: A opening bracket { was added; Added "function()->explicitName()" instead of "function()->name()"
Issue #78
Diffstat (limited to 'js')
-rw-r--r--js/src/frontend/BytecodeEmitter.cpp2
-rw-r--r--js/src/frontend/Parser.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp
index 457218178..acf734794 100644
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -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.
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp
index 3106702cf..f4c02720a 100644
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -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 {