mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +02:00
Tests with the raw flag can't use $DONOTEVALUATE();
This commit is contained in:
parent
4ca5a94852
commit
f13a0c5aaf
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -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;
|
||||||
|
@ -6,6 +6,6 @@ description: >
|
|||||||
info: |
|
info: |
|
||||||
HashbangComment::
|
HashbangComment::
|
||||||
#! SingleLineCommentChars[opt]
|
#! SingleLineCommentChars[opt]
|
||||||
flags: [module]
|
flags: [module, raw]
|
||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
@ -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]
|
||||||
---*/
|
---*/
|
||||||
|
@ -5,7 +5,6 @@ description: >
|
|||||||
info: |
|
info: |
|
||||||
HashbangComment::
|
HashbangComment::
|
||||||
#! SingleLineCommentChars[opt]
|
#! SingleLineCommentChars[opt]
|
||||||
flags: [raw]
|
|
||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -9,4 +9,3 @@ info: |
|
|||||||
flags: [raw]
|
flags: [raw]
|
||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -14,4 +14,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -14,4 +14,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -14,4 +14,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -14,4 +14,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -14,4 +14,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -13,4 +13,4 @@ negative:
|
|||||||
features: [hashbang]
|
features: [hashbang]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
@ -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();
|
|||||||
|
|
||||||
{
|
{
|
||||||
#!
|
#!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user