mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
Fixing malformed test cases
This commit is contained in:
parent
13b63c5486
commit
68e437e708
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-1-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is 'use strict'; which contains two space between 'use' and 'strict'
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-10-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''USE STRICT';' in which all characters are uppercase
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-11-s.js
|
||||
* @description Strict Mode - Eval code is strict code with a Use Strict Directive at the beginning of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-12-s.js
|
||||
* @description Strict Mode - Eval code is strict eval code with a Use Strict Directive in the middle of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-13-s.js
|
||||
* @description Strict Mode - Eval code is strict eval code with a Use Strict Directive at the end of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-14-s.js
|
||||
* @description Strict Mode - The call to eval function is contained in a Strict Mode block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-15-s.js
|
||||
* @description Strict Mode - Function code that is part of a FunctionDeclaration is strict function code if FunctionDeclaration is contained in use strict
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-16-s.js
|
||||
* @description Strict Mode - Function code that is part of a FunctionExpression is strict function code if FunctionExpression is contained in use strict
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-17-s.js
|
||||
* @description Strict Mode - Function code that is part of a Accessor PropertyAssignment is in Strict Mode if Accessor PropertyAssignment is contained in use strict(getter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-18-s.js
|
||||
* @description Strict Mode - Function code that is part of a Accessor PropertyAssignment is in Strict Mode if Accessor PropertyAssignment is contained in use strict(setter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-19-s.js
|
||||
* @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears at the start of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-2-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';'
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-20-s.js
|
||||
* @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears in the middle of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-21-s.js
|
||||
* @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears at the end of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-22-s.js
|
||||
* @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears at the start of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-23-s.js
|
||||
* @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears in the middle of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-24-s.js
|
||||
* @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears at the end of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-25-s.js
|
||||
* @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the start of the block(getter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-26-s.js
|
||||
* @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the start of the block(setter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-27-s.js
|
||||
* @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears in the middle of the block(getter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-28-s.js
|
||||
* @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the end of the block(setter)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-29-s.js
|
||||
* @description Strict Mode - The built-in Function constructor is contained in use strict code
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-2gs.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';'
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
* @negative ^((?!NotEarlyError).)*$
|
||||
*/
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-3-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is '' use strict';' which the first character is space
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-30-s.js
|
||||
* @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears at the start of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-31-s.js
|
||||
* @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears in the middle of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-32-s.js
|
||||
* @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears at the end of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-4-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict ';' which the last character is space
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-5-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the beginning of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-5gs.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the start of the code
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
* @negative ^((?!NotEarlyError).)*$
|
||||
*/
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-6-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears in the middle of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-7-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the end of the block
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-8-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the directive prologue
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-8gs.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the code
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
* @negative ^((?!NotEarlyError).)*$
|
||||
*/
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.1/10.1.1/10.1.1-9-s.js
|
||||
* @description Strict Mode - Use Strict Directive Prologue is ''Use strict';' in which the first character is uppercase
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.4/10.4.3/10.4.3-1-1-s.js
|
||||
* @description this is not coerced to an object in strict mode (Number)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.4/10.4.3/10.4.3-1-2-s.js
|
||||
* @description this is not coerced to an object in strict mode (string)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.4/10.4.3/10.4.3-1-3-s.js
|
||||
* @description this is not coerced to an object in strict mode (undefined)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter10/10.4/10.4.3/10.4.3-1-4-s.js
|
||||
* @description this is not coerced to an object in strict mode (boolean)
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
/**
|
||||
* @path chapter11/11.13/11.13.1/11.13.1-4-27-s.js
|
||||
* @description simple assignment throws TypeError if LeftHandSide is a readonly property in strict mode (Global.undefined)
|
||||
* @onlyStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter12/12.10/12.10.1/12.10.1-13-s.js
|
||||
* @description Strict Mode - SyntaxError isn't thrown when WithStatement body is in strict mode code
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-1-s.js
|
||||
* @description 'use strict' directive - correct usage
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-10-s.js
|
||||
* @description other directives - may follow 'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-11-s.js
|
||||
* @description comments may preceed 'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-12-s.js
|
||||
* @description comments may follow 'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-13-s.js
|
||||
* @description semicolon insertion works for'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-14-s.js
|
||||
* @description semicolon insertion may come before 'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-15-s.js
|
||||
* @description blank lines may come before 'use strict' directive
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-16-s.js
|
||||
* @description 'use strict' directive - not recognized if it follow an empty statement
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -1,11 +1,3 @@
|
||||
|
||||
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-17-s.js
|
||||
* @description 'use strict' directive - not recognized if it follow some other statment empty statement
|
||||
* @onlyStrict
|
||||
*/
|
||||
|
||||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
@ -25,6 +17,13 @@
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-17-s.js
|
||||
* @description 'use strict' directive - not recognized if it follow some other statment empty statement
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
function testcase() {
|
||||
|
||||
function foo()
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-2-s.js
|
||||
* @description "use strict" directive - correct usage double quotes
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-3-s.js
|
||||
* @description 'use strict' directive - not recognized if it contains extra whitespace
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-4-s.js
|
||||
* @description 'use strict' directive - not recognized if contains Line Continuation
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-5-s.js
|
||||
* @description 'use strict' directive - not recognized if contains a EscapeSequence
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-6-s.js
|
||||
* @description 'use strict' directive - not recognized if contains a <TAB> instead of a space
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-7-s.js
|
||||
* @description 'use strict' directive - not recognized if upper case
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-8-s.js
|
||||
* @description 'use strict' directive - may follow other directives
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @path chapter14/14.1/14.1-9-s.js
|
||||
* @description 'use strict' directive - may occur multiple times
|
||||
* @onlyStrict
|
||||
* @noStrict
|
||||
*/
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user