From 9bb90d1a341311124295f2e056e20bf5aaccebcf Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Mon, 11 Nov 2019 11:38:26 -0800 Subject: [PATCH] Fix failure phase in coalesce tests (#2415) --- .../coalesce/cannot-chain-head-with-logical-and.js | 6 ++++-- .../coalesce/cannot-chain-head-with-logical-or.js | 6 ++++-- .../coalesce/cannot-chain-tail-with-logical-and.js | 6 ++++-- .../coalesce/cannot-chain-tail-with-logical-or.js | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/test/language/expressions/coalesce/cannot-chain-head-with-logical-and.js b/test/language/expressions/coalesce/cannot-chain-head-with-logical-and.js index fc9d27d464..de17de9f94 100644 --- a/test/language/expressions/coalesce/cannot-chain-head-with-logical-and.js +++ b/test/language/expressions/coalesce/cannot-chain-head-with-logical-and.js @@ -22,8 +22,10 @@ info: | BitwiseORExpression features: [coalesce-expression] negative: - phase: early + phase: parse type: SyntaxError ---*/ -0 && 0 ?? true; \ No newline at end of file +$DONOTEVALUATE(); + +0 && 0 ?? true; diff --git a/test/language/expressions/coalesce/cannot-chain-head-with-logical-or.js b/test/language/expressions/coalesce/cannot-chain-head-with-logical-or.js index 658d15555d..de9ff3fffb 100644 --- a/test/language/expressions/coalesce/cannot-chain-head-with-logical-or.js +++ b/test/language/expressions/coalesce/cannot-chain-head-with-logical-or.js @@ -22,8 +22,10 @@ info: | BitwiseORExpression features: [coalesce-expression] negative: - phase: early + phase: parse type: SyntaxError ---*/ -0 || 0 ?? true; \ No newline at end of file +$DONOTEVALUATE(); + +0 || 0 ?? true; diff --git a/test/language/expressions/coalesce/cannot-chain-tail-with-logical-and.js b/test/language/expressions/coalesce/cannot-chain-tail-with-logical-and.js index f0c2dd77f7..a279608cc6 100644 --- a/test/language/expressions/coalesce/cannot-chain-tail-with-logical-and.js +++ b/test/language/expressions/coalesce/cannot-chain-tail-with-logical-and.js @@ -23,8 +23,10 @@ info: | BitwiseORExpression features: [coalesce-expression] negative: - phase: early + phase: parse type: SyntaxError ---*/ -0 ?? 0 && true; \ No newline at end of file +$DONOTEVALUATE(); + +0 ?? 0 && true; diff --git a/test/language/expressions/coalesce/cannot-chain-tail-with-logical-or.js b/test/language/expressions/coalesce/cannot-chain-tail-with-logical-or.js index 00028c3e1d..0849f76139 100644 --- a/test/language/expressions/coalesce/cannot-chain-tail-with-logical-or.js +++ b/test/language/expressions/coalesce/cannot-chain-tail-with-logical-or.js @@ -23,8 +23,10 @@ info: | BitwiseORExpression features: [coalesce-expression] negative: - phase: early + phase: parse type: SyntaxError ---*/ -0 ?? 0 || true; \ No newline at end of file +$DONOTEVALUATE(); + +0 ?? 0 || true;