Tests with the raw flag can't use $DONOTEVALUATE();

This commit is contained in:
Leo Balter 2019-02-05 15:02:55 -05:00 committed by Rick Waldron
parent 4ca5a94852
commit f13a0c5aaf
22 changed files with 21 additions and 23 deletions

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -7,6 +7,7 @@ info: |
#! SingleLineCommentChars[opt] #! SingleLineCommentChars[opt]
features: [hashbang] features: [hashbang]
---*/ ---*/
const AsyncFunction = (async function (){}).constructor; const AsyncFunction = (async function (){}).constructor;
const GeneratorFunction = (function *(){}).constructor; const GeneratorFunction = (function *(){}).constructor;
const AsyncGeneratorFunction = (async function *(){}).constructor; const AsyncGeneratorFunction = (async function *(){}).constructor;

View File

@ -6,6 +6,6 @@ description: >
info: | info: |
HashbangComment:: HashbangComment::
#! SingleLineCommentChars[opt] #! SingleLineCommentChars[opt]
flags: [module] flags: [module, raw]
features: [hashbang] features: [hashbang]
---*/ ---*/

View File

@ -1,5 +1,5 @@
#!/* #!/*
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";
these characters should not be considered within a comment these characters should not be considered within a comment
*/ */
/*--- /*---
@ -14,4 +14,4 @@ negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
features: [hashbang] features: [hashbang]
---*/ ---*/

View File

@ -5,7 +5,6 @@ description: >
info: | info: |
HashbangComment:: HashbangComment::
#! SingleLineCommentChars[opt] #! SingleLineCommentChars[opt]
flags: [raw]
features: [hashbang] features: [hashbang]
---*/ ---*/

View File

@ -9,4 +9,3 @@ info: |
flags: [raw] flags: [raw]
features: [hashbang] features: [hashbang]
---*/ ---*/

View File

@ -14,4 +14,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -14,4 +14,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -14,4 +14,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -14,4 +14,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -14,4 +14,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -13,4 +13,4 @@ negative:
features: [hashbang] features: [hashbang]
---*/ ---*/
$DONOTEVALUATE(); throw "Test262: This statement should not be evaluated.";

View File

@ -5,7 +5,6 @@ description: >
info: | info: |
HashbangComment:: HashbangComment::
#! SingleLineCommentChars[opt] #! SingleLineCommentChars[opt]
flags: [raw]
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
@ -16,4 +15,4 @@ $DONOTEVALUATE();
{ {
#! #!
} }