diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 16:51:29 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:19 -0400 |
commit | afb28a43d481075a244b0e18faa8447dfadacf8f (patch) | |
tree | 5a820425685c2e9986ae34bf9e6325314e3b72a0 /js/src/frontend/FoldConstants.cpp | |
parent | adc81d634d12d58a64e0d2a1e95998b766cf6e96 (diff) | |
download | UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.gz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.lz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.tar.xz UXP-afb28a43d481075a244b0e18faa8447dfadacf8f.zip |
1317375 - Implement "Template Literals Revision / Lifting Template Literal Restriction" ECMAScript proposal
Diffstat (limited to 'js/src/frontend/FoldConstants.cpp')
-rw-r--r-- | js/src/frontend/FoldConstants.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/frontend/FoldConstants.cpp b/js/src/frontend/FoldConstants.cpp index 6f62ffac6..441a72a45 100644 --- a/js/src/frontend/FoldConstants.cpp +++ b/js/src/frontend/FoldConstants.cpp @@ -378,6 +378,7 @@ ContainsHoistedDeclaration(ExclusiveContext* cx, ParseNode* node, bool* result) case PNK_TRUE: case PNK_FALSE: case PNK_NULL: + case PNK_RAW_UNDEFINED: case PNK_THIS: case PNK_ELISION: case PNK_NUMBER: @@ -468,6 +469,7 @@ IsEffectless(ParseNode* node) node->isKind(PNK_TEMPLATE_STRING) || node->isKind(PNK_NUMBER) || node->isKind(PNK_NULL) || + node->isKind(PNK_RAW_UNDEFINED) || node->isKind(PNK_FUNCTION) || node->isKind(PNK_GENEXP); } @@ -492,6 +494,7 @@ Boolish(ParseNode* pn) case PNK_FALSE: case PNK_NULL: + case PNK_RAW_UNDEFINED: return Falsy; case PNK_VOID: { @@ -1643,6 +1646,7 @@ Fold(ExclusiveContext* cx, ParseNode** pnp, Parser<FullParseHandler>& parser, bo case PNK_TRUE: case PNK_FALSE: case PNK_NULL: + case PNK_RAW_UNDEFINED: case PNK_ELISION: case PNK_NUMBER: case PNK_DEBUGGER: |