summaryrefslogtreecommitdiff
path: root/js/src/frontend/ParseNode-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/ParseNode-inl.h')
-rw-r--r--js/src/frontend/ParseNode-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/frontend/ParseNode-inl.h b/js/src/frontend/ParseNode-inl.h
index 395d09b5b9..21bd837668 100644
--- a/js/src/frontend/ParseNode-inl.h
+++ b/js/src/frontend/ParseNode-inl.h
@@ -18,7 +18,7 @@ inline PropertyName*
ParseNode::name() const
{
MOZ_ASSERT(isKind(PNK_FUNCTION) || isKind(PNK_NAME));
- JSAtom* atom = isKind(PNK_FUNCTION) ? pn_funbox->function()->name() : pn_atom;
+ JSAtom* atom = isKind(PNK_FUNCTION) ? pn_funbox->function()->explicitName() : pn_atom;
return atom->asPropertyName();
}