summaryrefslogtreecommitdiff
path: root/js/src/frontend/NameFunctions.cpp
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-05-27 16:21:50 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-05-27 16:22:09 -0500
commit53926d7fbf4232cdef0449b5b515404085fea3f1 (patch)
tree6252b65616a52751caa0aae272158d32da2a0394 /js/src/frontend/NameFunctions.cpp
parentf61dc2fba06f86de5313d0a15b54251441cc6675 (diff)
downloadaura-central-53926d7fbf4232cdef0449b5b515404085fea3f1.tar.gz
[JS:Engine] Implement support for nullish coalescing in the JS parser
- UXP Parts 1, 2, 4, 5, and 7 based on Bug 1566141 - UXP Part 3 partially based on Bugs 1566141 and 1593415 - UXP Part 6 partly based on Bugs 1566141 and 1599163 with a different approach by modifying the `Boolish` function directly to act differently if we're checking for nullish values.
Diffstat (limited to 'js/src/frontend/NameFunctions.cpp')
-rw-r--r--js/src/frontend/NameFunctions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/frontend/NameFunctions.cpp b/js/src/frontend/NameFunctions.cpp
index a36427d83..ebf83fb23 100644
--- a/js/src/frontend/NameFunctions.cpp
+++ b/js/src/frontend/NameFunctions.cpp
@@ -663,6 +663,7 @@ class NameResolver
break;
// Nodes with arbitrary-expression children.
+ case PNK_COALESCE:
case PNK_OR:
case PNK_AND:
case PNK_BITOR: