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]
---*/
$DONOTEVALUATE();
throw "Test262: This statement should not be evaluated.";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,6 +6,6 @@ description: >
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
flags: [module]
flags: [module, raw]
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
*/
/*---
@ -14,4 +14,4 @@ negative:
phase: parse
type: SyntaxError
features: [hashbang]
---*/
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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