diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 15:47:10 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 15:47:10 +0100 |
commit | ec0e91c50be3b7a871463867fa260672552ce7e9 (patch) | |
tree | ef1e8a83106f6b54504dbe3b29554ef7b349a1bb /js/src/jsfuninlines.h | |
parent | 23f5317d1c5698950aea84791dc93ee616d8af04 (diff) | |
download | uxp-ec0e91c50be3b7a871463867fa260672552ce7e9.tar.gz |
Part 1: Implement ES6 function name property semantics
Issue mcp-graveyard/UXP#78
Diffstat (limited to 'js/src/jsfuninlines.h')
-rw-r--r-- | js/src/jsfuninlines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsfuninlines.h b/js/src/jsfuninlines.h index 8286a7d6af..e134def617 100644 --- a/js/src/jsfuninlines.h +++ b/js/src/jsfuninlines.h @@ -16,7 +16,7 @@ namespace js { inline const char* GetFunctionNameBytes(JSContext* cx, JSFunction* fun, JSAutoByteString* bytes) { - if (JSAtom* name = fun->name()) + if (JSAtom* name = fun->explicitName()) return bytes->encodeLatin1(cx, name); return js_anonymous_str; } |