From 305a2bb676d1566300f7d6b548d5cc5238f6baaa Mon Sep 17 00:00:00 2001 From: David Fugate Date: Sat, 24 Sep 2011 17:19:43 -0700 Subject: [PATCH] Fixed some strict metadata. --- .../Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js | 2 +- .../8.6.1_Property_Attributes/S8.6.1_A1.js | 2 +- .../8.6.1_Property_Attributes/S8.6.1_A3.js | 2 +- .../8.6.2_Internal_Properties_and_Methods/S8.6.2.3_A1.js | 2 +- .../8.6.2_Internal_Properties_and_Methods/S8.6.2.5_A1.js | 2 +- .../Conformance/08_Types/8.7_The_Reference_Type/S8.7_A5_T1.js | 2 +- .../10.4.2_Eval_Code/S10.4.2.1_A1.js | 1 + .../10.4.3_Entering_Function_Code/S10.4.3_A1.js | 4 ++-- .../11.4.1_The_delete_Operator/S11.4.1_A5.js | 2 +- .../13.2_Creating_Function_Objects/S13.2.3_A1.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A6_T1.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A6_T2.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A7_T1.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A7_T2.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A8_T1.js | 1 + .../13.2_Creating_Function_Objects/S13.2_A8_T2.js | 1 + .../15.2.3.4_Object.getOwnPropertyNames/S15.2.3.4_A1_T1.js | 4 ++-- .../15.8.1.1_E/S15.8.1.1_A3.js | 2 +- test/suite/sputnik/Conformance/bestPractice/Sbp_A1_T1.js | 4 ++-- test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T1.js | 4 ++-- test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T2.js | 4 ++-- test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T1.js | 4 ++-- test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T2.js | 4 ++-- test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T1.js | 2 +- test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T2.js | 2 +- test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T1.js | 2 +- test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T2.js | 2 +- 27 files changed, 34 insertions(+), 26 deletions(-) diff --git a/test/suite/sputnik/Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js b/test/suite/sputnik/Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js index 6340939edb..da222ab3f2 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js +++ b/test/suite/sputnik/Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js @@ -6,7 +6,7 @@ * @section: 8.5, 7.8.3; * @assertion: Globally defined variable NaN has not been altered by program execution; * @description: Try alter globally defined variable NaN; - * @strict_mode_negative + * @noStrict */ Number.NaN = 1; diff --git a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A1.js b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A1.js index 0d95b377fa..7d32103861 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A1.js +++ b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A1.js @@ -6,7 +6,7 @@ * @section: 8.6.1, 15.2.2, 15.8; * @assertion: A property can have attribute ReadOnly like E in Math; * @description: Try change Math.E property; - * @strict_mode_negative + * @noStrict */ var __e = Math.E; diff --git a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A3.js b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A3.js index 1a72349635..4c343e41b3 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A3.js +++ b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A3.js @@ -6,7 +6,7 @@ * @section: 8.6.1, 15.7; * @assertion: A property can have attribute DontDelete like NaN propertie of Number object; * @description: Try to delete Number.NaN; - * @strict_mode_negative + * @noStrict */ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 diff --git a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.3_A1.js b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.3_A1.js index 5f18c0dd2f..de4e6eaa82 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.3_A1.js +++ b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.3_A1.js @@ -6,7 +6,7 @@ * @section: 8.6.2.3, 8.6.2.2, 8.6.1; * @assertion: If the property has the ReadOnly attribute, [[CanPut]](P) return false; * @description: Try put other value for Math.E property; - * @strict_mode_negative + * @noStrict */ var __e = Math.E; diff --git a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.5_A1.js b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.5_A1.js index b9644f1190..d9487563cc 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.5_A1.js +++ b/test/suite/sputnik/Conformance/08_Types/8.6_The_Object_Type/8.6.2_Internal_Properties_and_Methods/S8.6.2.5_A1.js @@ -7,7 +7,7 @@ * @assertion: When the [[Delete]] method of O is called with property name P, * and If the property has the DontDelete attribute, return false; * @description: Try to delete Math.E, that has the DontDelete attribute; -* @strict_mode_negative +* @noStrict */ ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/sputnik/Conformance/08_Types/8.7_The_Reference_Type/S8.7_A5_T1.js b/test/suite/sputnik/Conformance/08_Types/8.7_The_Reference_Type/S8.7_A5_T1.js index 3c86e3e2ad..92b5b60d0b 100644 --- a/test/suite/sputnik/Conformance/08_Types/8.7_The_Reference_Type/S8.7_A5_T1.js +++ b/test/suite/sputnik/Conformance/08_Types/8.7_The_Reference_Type/S8.7_A5_T1.js @@ -6,7 +6,7 @@ * @section: 8.7; * @assertion: Delete unary operator can't delete object to be referenced; * @description: Delete referenced object, var __ref = obj; -* @strict_mode_negative +* @noStrict */ ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.2_Eval_Code/S10.4.2.1_A1.js b/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.2_Eval_Code/S10.4.2.1_A1.js index 3ffb257176..526bcffdf7 100644 --- a/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.2_Eval_Code/S10.4.2.1_A1.js +++ b/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.2_Eval_Code/S10.4.2.1_A1.js @@ -6,6 +6,7 @@ * declarations into the global scope * @onlyStrict */ +"use strict"; if (!('foo' in this)) { (1,eval)('"use strict"; var foo = 88;'); if ('foo' in this) { diff --git a/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.3_Entering_Function_Code/S10.4.3_A1.js b/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.3_Entering_Function_Code/S10.4.3_A1.js index 70937dec7f..05f8924a42 100644 --- a/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.3_Entering_Function_Code/S10.4.3_A1.js +++ b/test/suite/sputnik/Conformance/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.3_Entering_Function_Code/S10.4.3_A1.js @@ -5,8 +5,8 @@ * @description When calling a strict anonymous function as a * function, "this" should be bound to undefined. * @onlyStrict - */ - + */ +"use strict"; var that = (function() { return this; })(); if (that !== undefined) { $ERROR('#1: "this" leaked as: ' + that); diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.4_Unary_Operators/11.4.1_The_delete_Operator/S11.4.1_A5.js b/test/suite/sputnik/Conformance/11_Expressions/11.4_Unary_Operators/11.4.1_The_delete_Operator/S11.4.1_A5.js index 3627a961ae..0685fcc871 100644 --- a/test/suite/sputnik/Conformance/11_Expressions/11.4_Unary_Operators/11.4.1_The_delete_Operator/S11.4.1_A5.js +++ b/test/suite/sputnik/Conformance/11_Expressions/11.4_Unary_Operators/11.4.1_The_delete_Operator/S11.4.1_A5.js @@ -10,7 +10,7 @@ * non-standard property. * @onlyStrict */ - +"use strict"; var deleted = 'unassigned'; try { deleted = delete RegExp.leftContext; diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.3_A1.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.3_A1.js index 5f9d14204c..8890bb65cf 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.3_A1.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2.3_A1.js @@ -6,6 +6,7 @@ * function object. * @onlyStrict */ +"use strict"; var poison = Object.getOwnPropertyDescriptor(function() {}, 'caller').get; if (typeof poison !== 'function') { diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T1.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T1.js index 86b24fe982..e81a845da0 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T1.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T1.js @@ -6,4 +6,5 @@ * getOwnPropertyDescriptor too * @onlyStrict */ +"use strict"; Object.getOwnPropertyDescriptor(function(){}, 'caller'); diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T2.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T2.js index 158f34ac19..6987d60c54 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T2.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A6_T2.js @@ -6,4 +6,5 @@ * getOwnPropertyDescriptor too * @onlyStrict */ +"use strict"; Object.getOwnPropertyDescriptor(function(){}, 'arguments'); diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T1.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T1.js index eceb3fa74b..309b579c5a 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T1.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T1.js @@ -6,5 +6,6 @@ * hasOwnProperty too * @onlyStrict */ +"use strict"; (function(){}).hasOwnProperty('caller'); diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T2.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T2.js index 67bedb2a15..f528592d3b 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T2.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A7_T2.js @@ -6,5 +6,6 @@ * hasOwnProperty too * @onlyStrict */ +"use strict"; (function(){}).hasOwnProperty('arguments'); diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T1.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T1.js index 49b4d4b47a..0c1dfd5047 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T1.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T1.js @@ -6,5 +6,6 @@ * "in" too * @onlyStrict */ +"use strict"; 'caller' in function() {}; diff --git a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T2.js b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T2.js index 007096a782..8fa9ae3da6 100644 --- a/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T2.js +++ b/test/suite/sputnik/Conformance/13_Function_Definition/13.2_Creating_Function_Objects/S13.2_A8_T2.js @@ -6,5 +6,6 @@ * "in" too * @onlyStrict */ +"use strict"; 'arguments' in function() {}; diff --git a/test/suite/sputnik/Conformance/15_Native/15.2_Object_Objects/15.2.3_Properties_of_the_Object_Constructor/15.2.3.4_Object.getOwnPropertyNames/S15.2.3.4_A1_T1.js b/test/suite/sputnik/Conformance/15_Native/15.2_Object_Objects/15.2.3_Properties_of_the_Object_Constructor/15.2.3.4_Object.getOwnPropertyNames/S15.2.3.4_A1_T1.js index c12649f5a8..6127627cab 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.2_Object_Objects/15.2.3_Properties_of_the_Object_Constructor/15.2.3.4_Object.getOwnPropertyNames/S15.2.3.4_A1_T1.js +++ b/test/suite/sputnik/Conformance/15_Native/15.2_Object_Objects/15.2.3_Properties_of_the_Object_Constructor/15.2.3.4_Object.getOwnPropertyNames/S15.2.3.4_A1_T1.js @@ -9,8 +9,8 @@ * Object.getOwnPropertyNames on a strict function are names that * hasOwnProperty agrees are own properties. * @onlyStrict - */ - + */ +"use strict"; function foo() {} var names = Object.getOwnPropertyNames(foo); diff --git a/test/suite/sputnik/Conformance/15_Native/15.8_The_Math_Object/15.8.1_Value_Properties_of_the_Math_Object/15.8.1.1_E/S15.8.1.1_A3.js b/test/suite/sputnik/Conformance/15_Native/15.8_The_Math_Object/15.8.1_Value_Properties_of_the_Math_Object/15.8.1.1_E/S15.8.1.1_A3.js index 073d3c09e7..d106a82d13 100644 --- a/test/suite/sputnik/Conformance/15_Native/15.8_The_Math_Object/15.8.1_Value_Properties_of_the_Math_Object/15.8.1.1_E/S15.8.1.1_A3.js +++ b/test/suite/sputnik/Conformance/15_Native/15.8_The_Math_Object/15.8.1_Value_Properties_of_the_Math_Object/15.8.1.1_E/S15.8.1.1_A3.js @@ -6,7 +6,7 @@ * @section: 15.8.1.1; * @assertion: Value Property E of the Math Object has the attribute DontDelete; * @description: Checking if Math.E property has the attribute DontDelete; - * @strict_mode_negative + * @noStrict */ // CHECK#1 diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A1_T1.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A1_T1.js index 1ce8f7d5fc..be589ead30 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A1_T1.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A1_T1.js @@ -10,8 +10,8 @@ * @onlyStrict * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls - */ - + */ +"use strict"; { function __func(){} } diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T1.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T1.js index 7a949dfb51..5148af5966 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T1.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T1.js @@ -10,8 +10,8 @@ * @onlyStrict * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls - */ - + */ +"use strict"; if (true) { function __func(){}; } else { diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T2.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T2.js index e7ee11ed20..e0b67a844a 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T2.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A2_T2.js @@ -10,8 +10,8 @@ * @onlyStrict * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls - */ - + */ +"use strict"; (function(){ if (true) { function __func(){}; diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T1.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T1.js index 2708cfdae8..980cf83956 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T1.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T1.js @@ -10,8 +10,8 @@ * @onlyStrict * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls -*/ - +*/ +"use strict"; do { function __func(){}; } while(0); diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T2.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T2.js index 40d1cbfab4..8d5f11ea26 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T2.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A3_T2.js @@ -10,8 +10,8 @@ * @onlyStrict * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls - */ - + */ +"use strict"; (function(){ do { function __func(){}; diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T1.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T1.js index 930aa6dfc7..74949f143b 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T1.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T1.js @@ -11,7 +11,7 @@ * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls */ - +"use strict"; while (0) { function __func(){}; }; diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T2.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T2.js index d32d956f54..a072585654 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T2.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A4_T2.js @@ -11,7 +11,7 @@ * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls */ - +"use strict"; (function(){ while (0) { function __func(){}; diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T1.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T1.js index 268f460b77..3aeced360d 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T1.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T1.js @@ -10,7 +10,7 @@ * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls */ - +"use strict"; for (x in this) { function __func(){}; } diff --git a/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T2.js b/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T2.js index 56e6ec9765..71051ef601 100644 --- a/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T2.js +++ b/test/suite/sputnik/Conformance/bestPractice/Sbp_A5_T2.js @@ -11,7 +11,7 @@ * @bestPractice * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls */ - +"use strict"; (function(){ for (x in this) { function __func(){};