diff options
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js')
-rw-r--r-- | test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js | 42 |
1 files changed, 11 insertions, 31 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js b/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js index 378e291cc..09111a2d2 100644 --- a/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js +++ b/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js @@ -1,35 +1,15 @@ -// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S12.6.1_A13_T2;
-* @section: 12.6.1, 13;
-* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
-* @description: Declaring a function within a "do-while" loop that is within a strict function;
-* @negative SyntaxError;
-*/
-
+// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + // Converted for Test262 from original Sputnik source
-ES5Harness.registerTest( {
-id: "S12.6.1_A13_T2",
-
-path: "TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T2.js",
-
-assertion: "FunctionDeclaration within a \"do-while\" Block in strict code is not allowed",
-
-description: "Declaring a function within a \"do-while\" loop that is within a strict function",
-
-test: function testcase() {
- (function(){
-"use strict";
-do{
- function __func(){};
-}while(0);
-
-});
-
- }
-});
+ (function(){ +"use strict"; +do{ + function __func(){}; +}while(0); + +}); +
|