mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Improve frontmatter usage
Define explanatory text using the `info` tag and include single-line descriptions.
This commit is contained in:
parent
80c67e56c1
commit
ef7ddf9f7e
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using distinct expressions within `eval`
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical but their expressions
|
template registry when their source is identical but their expressions
|
||||||
evaluate to different values and the tagged template is being evaluated in
|
evaluate to different values and the tagged template is being evaluated in
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using distinct expressions within `new Function`
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical but their expressions
|
template registry when their source is identical but their expressions
|
||||||
evaluate to different values and the tagged template is being evaluated in
|
evaluate to different values and the tagged template is being evaluated in
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using distinct expressions
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical but their expressions
|
template registry when their source is identical but their expressions
|
||||||
evaluate to different values.
|
evaluate to different values.
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Templates are cached according to their "raw" representation
|
||||||
|
info: >
|
||||||
The internal template registry should be queried according to the "raw"
|
The internal template registry should be queried according to the "raw"
|
||||||
strings of the tagged template.
|
strings of the tagged template.
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Templates are cached according to the number of "raw" strings
|
||||||
|
info: >
|
||||||
The internal template registry should be queried according to the number of
|
The internal template registry should be queried according to the number of
|
||||||
"raw" strings in the tagged template.
|
"raw" strings in the tagged template.
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using identical expressions within `eval`
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical and the tagged template is
|
template registry when their source is identical and the tagged template is
|
||||||
being evaluated in an `eval` context.
|
being evaluated in an `eval` context.
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using identical expressions within `new Function`
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical and the tagged template is
|
template registry when their source is identical and the tagged template is
|
||||||
being evaluated in a `new Function` context.
|
being evaluated in a `new Function` context.
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Template caching using identical expressions
|
||||||
|
info: >
|
||||||
Previously-created template objects should be retrieved from the internal
|
Previously-created template objects should be retrieved from the internal
|
||||||
template registry when their source is identical.
|
template registry when their source is identical.
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.3.7
|
es6id: 12.3.7
|
||||||
description: >
|
description: Argument list evalution for member expresions
|
||||||
|
info: >
|
||||||
A tagged template is a function call where the arguments of the call are
|
A tagged template is a function call where the arguments of the call are
|
||||||
derived from a TemplateLiteral. The actual arguments include a template
|
derived from a TemplateLiteral. The actual arguments include a template
|
||||||
object and the values produced by evaluating the expressions embedded
|
object and the values produced by evaluating the expressions embedded
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.3.7
|
es6id: 12.3.7
|
||||||
description: >
|
description: Invocation context for member expressions
|
||||||
|
info: >
|
||||||
A tagged template is a function call where the arguments of the call are
|
A tagged template is a function call where the arguments of the call are
|
||||||
derived from a TemplateLiteral. The actual arguments include a template
|
derived from a TemplateLiteral. The actual arguments include a template
|
||||||
object and the values produced by evaluating the expressions embedded
|
object and the values produced by evaluating the expressions embedded
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.3.7
|
es6id: 12.3.7
|
||||||
description: >
|
description: Template objects are frozen (as demonstrated outside of strict mode)
|
||||||
|
info: >
|
||||||
The first argument to a tagged template should be frozen and define a `raw`
|
The first argument to a tagged template should be frozen and define a `raw`
|
||||||
property that is also frozen.
|
property that is also frozen.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.3.7
|
es6id: 12.3.7
|
||||||
description: >
|
description: Template objects are frozen (as demonstrated within strict mode)
|
||||||
|
info: >
|
||||||
The first argument to a tagged template should be frozen and define a `raw`
|
The first argument to a tagged template should be frozen and define a `raw`
|
||||||
property that is also frozen.
|
property that is also frozen.
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.3.7
|
es6id: 12.3.7
|
||||||
description: >
|
description: Properties of the template object
|
||||||
|
info: >
|
||||||
The first argument to a tagged template should be a template object as
|
The first argument to a tagged template should be a template object as
|
||||||
defined by the GetTemplateObject abstract operation.
|
defined by the GetTemplateObject abstract operation.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 12.2.8
|
es6id: 12.2.8
|
||||||
description: >
|
description: Expressions should be evaluated in left-to-right order.
|
||||||
Expressions should be evaluated in left-to-right order.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var tag = function(templateObject, a, b, c) {
|
var tag = function(templateObject, a, b, c) {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Invalid hexidecimal character escape sequence
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
||||||
EscapeSequence.
|
EscapeSequence.
|
||||||
negative: SyntaxError
|
negative: SyntaxError
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 16.1
|
es6id: 16.1
|
||||||
description: >
|
description: Invalid octal escape sequence
|
||||||
|
info: >
|
||||||
TemplateCharacter (11.8.6) must not be extended to include
|
TemplateCharacter (11.8.6) must not be extended to include
|
||||||
LegacyOctalEscapeSequence as defined in B.1.2.
|
LegacyOctalEscapeSequence as defined in B.1.2.
|
||||||
negative: SyntaxError
|
negative: SyntaxError
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6
|
||||||
description: >
|
description: Invalid unicode escape sequence
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
||||||
EscapeSequence.
|
EscapeSequence.
|
||||||
negative: SyntaxError
|
negative: SyntaxError
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of character escape sequences
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
||||||
EscapeSequence.
|
EscapeSequence.
|
||||||
The TRV of TemplateCharacter :: \ EscapeSequence is the sequence consisting
|
The TRV of TemplateCharacter :: \ EscapeSequence is the sequence consisting
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.1
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of hex escape sequences
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
||||||
EscapeSequence.
|
EscapeSequence.
|
||||||
The SV of UnicodeEscapeSequence :: u{ HexDigits } is the UTF16Encoding
|
The SV of UnicodeEscapeSequence :: u{ HexDigits } is the UTF16Encoding
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of line continuations
|
||||||
|
info: >
|
||||||
The TV of LineContinuation :: \ LineTerminatorSequence is the empty code
|
The TV of LineContinuation :: \ LineTerminatorSequence is the empty code
|
||||||
unit sequence.
|
unit sequence.
|
||||||
The TRV of LineContinuation :: \ LineTerminatorSequence is the sequence
|
The TRV of LineContinuation :: \ LineTerminatorSequence is the sequence
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of line terminator sequences
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: LineTerminatorSequence is the TRV of
|
The TV of TemplateCharacter :: LineTerminatorSequence is the TRV of
|
||||||
LineTerminatorSequence.
|
LineTerminatorSequence.
|
||||||
The TRV of LineTerminatorSequence :: <LF> is the code unit value 0x000A.
|
The TRV of LineTerminatorSequence :: <LF> is the code unit value 0x000A.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of templates without substitution patterns
|
||||||
|
info: >
|
||||||
The TV and TRV of NoSubstitutionTemplate :: `` is the empty code unit
|
The TV and TRV of NoSubstitutionTemplate :: `` is the empty code unit
|
||||||
sequence.
|
sequence.
|
||||||
The TV of NoSubstitutionTemplate :: ` TemplateCharacters ` is the TV of
|
The TV of NoSubstitutionTemplate :: ` TemplateCharacters ` is the TV of
|
||||||
|
Binary file not shown.
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of single characters
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacters :: TemplateCharacter is the TV of
|
The TV of TemplateCharacters :: TemplateCharacter is the TV of
|
||||||
TemplateCharacter.
|
TemplateCharacter.
|
||||||
The TV of TemplateCharacter :: SourceCharacter but not one of ` or \ or $
|
The TV of TemplateCharacter :: SourceCharacter but not one of ` or \ or $
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of multiple template characters
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a
|
The TV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a
|
||||||
sequence consisting of the code units in the TV of TemplateCharacter
|
sequence consisting of the code units in the TV of TemplateCharacter
|
||||||
followed by all the code units in the TV of TemplateCharacters in order.
|
followed by all the code units in the TV of TemplateCharacters in order.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of the template head pattern
|
||||||
|
info: >
|
||||||
The TV and TRV of TemplateHead :: `${ is the empty code unit sequence.
|
The TV and TRV of TemplateHead :: `${ is the empty code unit sequence.
|
||||||
The TV of TemplateHead :: ` TemplateCharacters ${ is the TV of
|
The TV of TemplateHead :: ` TemplateCharacters ${ is the TV of
|
||||||
TemplateCharacters.
|
TemplateCharacters.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of the template middle pattern
|
||||||
|
info: >
|
||||||
The TV and TRV of TemplateMiddle :: }${ is the empty code unit sequence.
|
The TV and TRV of TemplateMiddle :: }${ is the empty code unit sequence.
|
||||||
The TRV of TemplateMiddle :: } TemplateCharacters ${ is the TRV of
|
The TRV of TemplateMiddle :: } TemplateCharacters ${ is the TRV of
|
||||||
TemplateCharacters.
|
TemplateCharacters.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.8.6
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of the template tail pattern
|
||||||
|
info: >
|
||||||
The TV and TRV of TemplateTail :: }` is the empty code unit sequence.
|
The TV and TRV of TemplateTail :: }` is the empty code unit sequence.
|
||||||
The TV of TemplateTail :: } TemplateCharacters ` is the TV of
|
The TV of TemplateTail :: } TemplateCharacters ` is the TV of
|
||||||
TemplateCharacters.
|
TemplateCharacters.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.1
|
es6id: 11.8.6.1
|
||||||
description: >
|
description: Template values of UTF-16 escape sequences
|
||||||
|
info: >
|
||||||
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
|
||||||
EscapeSequence.
|
EscapeSequence.
|
||||||
The SV of UnicodeEscapeSequence :: u{ HexDigits } is the UTF16Encoding
|
The SV of UnicodeEscapeSequence :: u{ HexDigits } is the UTF16Encoding
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
// Copyright (C) Copyright 2014 the V8 project authors. All rights reserved.
|
||||||
// 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.
|
||||||
/*---
|
/*---
|
||||||
es6id: 11.1
|
es6id: 11.1.8.6.1
|
||||||
description: >
|
description: Template values of the zero width no-break space character
|
||||||
|
info: >
|
||||||
The zero width no-break space format-control character may be used within
|
The zero width no-break space format-control character may be used within
|
||||||
template literals.
|
template literals.
|
||||||
---*/
|
---*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user