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 | 5ef44cf6484b9dfd49c0174ac2969a29587a1bbd (patch) | |
tree | ef1e8a83106f6b54504dbe3b29554ef7b349a1bb /js/src/vm/GlobalObject.cpp | |
parent | 6822460d3b0d4609ee5d4e1ab4b093799ed06580 (diff) | |
download | UXP-5ef44cf6484b9dfd49c0174ac2969a29587a1bbd.tar UXP-5ef44cf6484b9dfd49c0174ac2969a29587a1bbd.tar.gz UXP-5ef44cf6484b9dfd49c0174ac2969a29587a1bbd.tar.lz UXP-5ef44cf6484b9dfd49c0174ac2969a29587a1bbd.tar.xz UXP-5ef44cf6484b9dfd49c0174ac2969a29587a1bbd.zip |
Part 1: Implement ES6 function name property semantics
Issue #78
Diffstat (limited to 'js/src/vm/GlobalObject.cpp')
-rw-r--r-- | js/src/vm/GlobalObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/vm/GlobalObject.cpp b/js/src/vm/GlobalObject.cpp index 039be2e32..280548cd6 100644 --- a/js/src/vm/GlobalObject.cpp +++ b/js/src/vm/GlobalObject.cpp @@ -802,10 +802,10 @@ GlobalObject::getSelfHostedFunction(JSContext* cx, Handle<GlobalObject*> global, return false; if (exists) { RootedFunction fun(cx, &funVal.toObject().as<JSFunction>()); - if (fun->name() == name) + if (fun->explicitName() == name) return true; - if (fun->name() == selfHostedName) { + if (fun->explicitName() == selfHostedName) { // This function was initially cloned because it was called by // other self-hosted code, so the clone kept its self-hosted name, // instead of getting the name it's intended to have in content |