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_T1.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_T1.js | 40 |
1 files changed, 10 insertions, 30 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_T1.js b/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js index 8b2eefbf3..ae60d2f74 100644 --- a/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js +++ b/test/suite/sputnik_converted/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js @@ -1,34 +1,14 @@ -// 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_T1;
-* @section: 12.6.1, 13;
-* @assertion: FunctionDeclaration within a "do-while" Block in strict code is not allowed;
-* @description: Declaring function within a "do-while" loop;
-* @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_T1",
-
-path: "TestCases/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js",
-
-assertion: "FunctionDeclaration within a \"do-while\" Block in strict code is not allowed",
-
-description: "Declaring function within a \"do-while\" loop",
-
-test: function testcase() {
- "use strict";
-if (!strict_mode) { throw new SyntaxError('unspecified case'); }
-
-do{
- function __func(){};
-} while(0);
-
- }
-});
+ "use strict"; +if (!strict_mode) { throw new SyntaxError('unspecified case'); } + +do{ + function __func(){}; +} while(0); +
|