Remove leading space characters in YAML frontmatter

Remove leading space characters so directly loading the frontmatter text
with `yaml.safe_load` doesn't throw an exception.
This commit is contained in:
André Bargull 2024-12-17 15:07:18 +01:00 committed by Ms2ger
parent 9e915f9b3c
commit 98a7f03f5c
53 changed files with 281 additions and 281 deletions

View File

@ -5,12 +5,12 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.anchor returns a string of HTML describing a single HTML String.prototype.anchor returns a string of HTML describing a single HTML
anchor element. The element's content is the `this` value of the function anchor element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `name` attribute. coerced to a string, escaped, and set as the element's `name` attribute.
es6id: B.2.3.2 es6id: B.2.3.2
---*/ ---*/
assert.sameValue('_'.anchor('b'), '<a name="b">_</a>'); assert.sameValue('_'.anchor('b'), '<a name="b">_</a>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.big returns a string of HTML describing a single HTML String.prototype.big returns a string of HTML describing a single HTML
big element. The element's content is the `this` value of the function big element. The element's content is the `this` value of the function
invocation, coerced to a string. invocation, coerced to a string.
es6id: B.2.3.3 es6id: B.2.3.3
---*/ ---*/
assert.sameValue('_'.big(), '<big>_</big>'); assert.sameValue('_'.big(), '<big>_</big>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.blink returns a string of HTML describing a single HTML String.prototype.blink returns a string of HTML describing a single HTML
blink element. The element's content is the `this` value of the function blink element. The element's content is the `this` value of the function
invocation, coerced to a string. invocation, coerced to a string.
es6id: B.2.3.4 es6id: B.2.3.4
---*/ ---*/
assert.sameValue('_'.blink(), '<blink>_</blink>'); assert.sameValue('_'.blink(), '<blink>_</blink>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.bold returns a string of HTML describing a single HTML String.prototype.bold returns a string of HTML describing a single HTML
bold element. The element's content is the `this` value of the function bold element. The element's content is the `this` value of the function
invocation, coerced to a string. invocation, coerced to a string.
es6id: B.2.3.5 es6id: B.2.3.5
---*/ ---*/
assert.sameValue('_'.bold(), '<b>_</b>'); assert.sameValue('_'.bold(), '<b>_</b>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.fixed returns a string of HTML describing a single HTML String.prototype.fixed returns a string of HTML describing a single HTML
teletype text element. The element's content is the `this` value of the teletype text element. The element's content is the `this` value of the
function invocation, coerced to a string. function invocation, coerced to a string.
es6id: B.2.3.6 es6id: B.2.3.6
---*/ ---*/
assert.sameValue('_'.fixed(), '<tt>_</tt>'); assert.sameValue('_'.fixed(), '<tt>_</tt>');

View File

@ -5,13 +5,13 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.fontcolor returns a string of HTML describing a single String.prototype.fontcolor returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `color` will be coerced to a string, escaped, and set as the element's `color`
attribute. attribute.
es6id: B.2.3.7 es6id: B.2.3.7
---*/ ---*/
assert.sameValue('_'.fontcolor('b'), '<font color="b">_</font>'); assert.sameValue('_'.fontcolor('b'), '<font color="b">_</font>');

View File

@ -5,13 +5,13 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.fontsize returns a string of HTML describing a single String.prototype.fontsize returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `size` will be coerced to a string, escaped, and set as the element's `size`
attribute. attribute.
es6id: B.2.3.8 es6id: B.2.3.8
---*/ ---*/
assert.sameValue('_'.fontsize('b'), '<font size="b">_</font>'); assert.sameValue('_'.fontsize('b'), '<font size="b">_</font>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.italics returns a string of HTML describing a single HTML String.prototype.italics returns a string of HTML describing a single HTML
italic element. The element's content is the `this` value of the function italic element. The element's content is the `this` value of the function
invocation, coerced to a string. invocation, coerced to a string.
es6id: B.2.3.9 es6id: B.2.3.9
---*/ ---*/
assert.sameValue('_'.italics(), '<i>_</i>'); assert.sameValue('_'.italics(), '<i>_</i>');

View File

@ -5,12 +5,12 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.link returns a string of HTML describing a single HTML String.prototype.link returns a string of HTML describing a single HTML
link element. The element's content is the `this` value of the function link element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `href` attribute. coerced to a string, escaped, and set as the element's `href` attribute.
es6id: B.2.3.10 es6id: B.2.3.10
---*/ ---*/
assert.sameValue('_'.link('b'), '<a href="b">_</a>'); assert.sameValue('_'.link('b'), '<a href="b">_</a>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.small returns a string of HTML describing a single HTML String.prototype.small returns a string of HTML describing a single HTML
small print element. The element's content is the `this` value of the small print element. The element's content is the `this` value of the
function invocation, coerced to a string. function invocation, coerced to a string.
es6id: B.2.3.11 es6id: B.2.3.11
---*/ ---*/
assert.sameValue('_'.small(), '<small>_</small>'); assert.sameValue('_'.small(), '<small>_</small>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.strike returns a string of HTML describing a single HTML String.prototype.strike returns a string of HTML describing a single HTML
strikethrough element. The element's content is the `this` value of the strikethrough element. The element's content is the `this` value of the
function invocation, coerced to a string. function invocation, coerced to a string.
es6id: B.2.3.12 es6id: B.2.3.12
---*/ ---*/
assert.sameValue('_'.strike(), '<strike>_</strike>'); assert.sameValue('_'.strike(), '<strike>_</strike>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.sub returns a string of HTML describing a single HTML String.prototype.sub returns a string of HTML describing a single HTML
subscript element. The element's content is the `this` value of the subscript element. The element's content is the `this` value of the
function invocation, coerced to a string. function invocation, coerced to a string.
es6id: B.2.3.13 es6id: B.2.3.13
---*/ ---*/
assert.sameValue('_'.sub(), '<sub>_</sub>'); assert.sameValue('_'.sub(), '<sub>_</sub>');

View File

@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/ // http://mathias.html5.org/tests/javascript/string/
/*--- /*---
description: > description: >
String.prototype.sup returns a string of HTML describing a single HTML String.prototype.sup returns a string of HTML describing a single HTML
superscript element. The element's content is the `this` value of the superscript element. The element's content is the `this` value of the
function invocation, coerced to a string. function invocation, coerced to a string.
es6id: B.2.3.14 es6id: B.2.3.14
---*/ ---*/
assert.sameValue('_'.sup(), '<sup>_</sup>'); assert.sameValue('_'.sup(), '<sup>_</sup>');

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
Generators declared with GeneratorMethod syntax do not require a Generators declared with GeneratorMethod syntax do not require a
`yield` expression. `yield` expression.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`return` is a valid statement within generator function bodies. `return` is a valid statement within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid expression within generator function bodies. `yield` is a valid expression within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid expression within generator function bodies. `yield` is a valid expression within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,12 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as the binding identifier of a function expression `yield` may be used as the binding identifier of a function expression
within generator bodies. within generator bodies.
features: [generators] features: [generators]
es6id: 14.1 es6id: 14.1
flags: [noStrict] flags: [noStrict]
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid BindingIdentifier for GeneratorMethods `yield` is a valid BindingIdentifier for GeneratorMethods
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,12 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is not a reserved keyword within normal function bodies declared `yield` is not a reserved keyword within normal function bodies declared
within generator function bodies. within generator function bodies.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
flags: [noStrict] flags: [noStrict]
---*/ ---*/
var result; var result;

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as a literal property name in an object literal `yield` may be used as a literal property name in an object literal
within generator function bodies. within generator function bodies.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var result; var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions are not LogicalOrExpressions. `yield` expressions are not LogicalOrExpressions.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a reserved keyword within generator function bodies and may `yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter. not be used as the binding identifier of a parameter.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as a literal property name in an object literal `yield` may be used as a literal property name in an object literal
within generator function bodies. within generator function bodies.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid statement within generator function bodies. `yield` is a valid statement within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions may be used as the right-hand-side of other `yield` `yield` expressions may be used as the right-hand-side of other `yield`
expressions. expressions.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
Newlines terminate `yield` expressions. Newlines terminate `yield` expressions.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
A newline may not precede the `*` token in a `yield` expression. A newline may not precede the `*` token in a `yield` expression.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
The right-hand side of a `yield *` expression may appear on a new line. The right-hand side of a `yield *` expression may appear on a new line.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions bind weakly `yield` expressions bind weakly
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,9 +2,9 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as a literal property name in an object literal. `yield` may be used as a literal property name in an object literal.
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
({ yield: 1 }); ({ yield: 1 });

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
Generators declared with GeneratorMethod syntax do not require a Generators declared with GeneratorMethod syntax do not require a
`yield` expression. `yield` expression.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`return` is a valid statement within generator function bodies. `return` is a valid statement within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid expression within generator function bodies. `yield` is a valid expression within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid expression within generator function bodies. `yield` is a valid expression within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may not be used as the binding identifier of a function `yield` may not be used as the binding identifier of a function
expression within classes. expression within classes.
features: [generators] features: [generators]
es6id: 14.1 es6id: 14.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid BindingIdentifier for GeneratorMethods outside of `yield` is a valid BindingIdentifier for GeneratorMethods outside of
strict mode. strict mode.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a reserved keyword within normal function bodies declared `yield` is a reserved keyword within normal function bodies declared
within classes. within classes.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as a literal property name in an object literal `yield` may be used as a literal property name in an object literal
within generator function bodies. within generator function bodies.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var result; var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions are not LogicalOrExpressions. `yield` expressions are not LogicalOrExpressions.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a reserved keyword within generator function bodies and may `yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter. not be used as the binding identifier of a parameter.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` may be used as a literal property name in an object literal `yield` may be used as a literal property name in an object literal
within generator function bodies. within generator function bodies.
features: [generators] features: [generators]
es6id: 12.1.1 es6id: 12.1.1
---*/ ---*/
var result; var result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a valid statement within generator function bodies. `yield` is a valid statement within generator function bodies.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions may be used as the right-hand-side of other `yield` `yield` expressions may be used as the right-hand-side of other `yield`
expressions. expressions.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
Newlines terminate `yield` expressions. Newlines terminate `yield` expressions.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var iter, result; var iter, result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
A newline may not precede the `*` token in a `yield` expression. A newline may not precede the `*` token in a `yield` expression.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
The right-hand side of a `yield *` expression may appear on a new line. The right-hand side of a `yield *` expression may appear on a new line.
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
---*/ ---*/
var result; var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` expressions bind weakly `yield` expressions bind weakly
features: [generators] features: [generators]
es6id: 14.4 es6id: 14.4
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
The method should return a valid iterator that can be traversed using a The method should return a valid iterator that can be traversed using a
`for...of` loop. `for...of` loop.
es6id: 22.1.3.4 es6id: 22.1.3.4
---*/ ---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN]; var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
The method should return a valid iterator that can be traversed using a The method should return a valid iterator that can be traversed using a
`for...of` loop. `for...of` loop.
es6id: 22.1.3.13 es6id: 22.1.3.13
---*/ ---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN]; var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,9 +2,9 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
Array instances should be able to be traversed using a `for...of` loop. Array instances should be able to be traversed using a `for...of` loop.
es6id: 13.6.4 es6id: 13.6.4
---*/ ---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN]; var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is not a reserved identifier in non-strict mode code and may be `yield` is not a reserved identifier in non-strict mode code and may be
used as a label. used as a label.
es6id: 12.1.1 es6id: 12.1.1
flags: [noStrict] flags: [noStrict]
---*/ ---*/
yield: 1; yield: 1;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`yield` is a reserved identifier in strict mode code and may not be used `yield` is a reserved identifier in strict mode code and may not be used
as a label. as a label.
es6id: 12.1.1 es6id: 12.1.1
negative: negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
$DONOTEVALUATE(); $DONOTEVALUATE();