diff options
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js')
-rw-r--r-- | test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js b/test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js index 961f7fe4d..5722d2bd9 100644 --- a/test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js +++ b/test/suite/sputnik_converted/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js @@ -1,38 +1,18 @@ -// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S12.5_A9_T2;
-* @section: 12.5;
-* @assertion: Function declaration within an "if" statement in strict code is not allowed;
-* @description: Declaring function within an "if" that is declared within the 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.5_A9_T2",
-
-path: "TestCases/12_Statement/12.5_The_if_Statement/S12.5_A9_T2.js",
-
-assertion: "Function declaration within an \"if\" statement in strict code is not allowed",
-
-description: "Declaring function within an \"if\" that is declared within the strict function",
-
-test: function testcase() {
- (function(){
-"use strict";
-
-if (true) {
- function __func(){};
-} else {
- function __func(){};
-}
-
-});
-
- }
-});
+ (function(){ +"use strict"; + +if (true) { + function __func(){}; +} else { + function __func(){}; +} + +}); +
|