aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js')
-rw-r--r--test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js40
1 files changed, 10 insertions, 30 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js b/test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js
index 336bc27de..e63406d77 100644
--- a/test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.js
+++ b/test/suite/sputnik_converted/12_Statement/12.1_Block/S12.1_A1.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.1_A1;
-* @section: 12.1;
-* @assertion: The production Block { } in strict code can't contain function declaration;
-* @description: Trying to declare function at the Block statement;
-* @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.1_A1",
-
-path: "TestCases/12_Statement/12.1_Block/S12.1_A1.js",
-
-assertion: "The production Block { } in strict code can\'t contain function declaration",
-
-description: "Trying to declare function at the Block statement",
-
-test: function testcase() {
- "use strict";
-if (!strict_mode) { throw new SyntaxError('unspecified case'); }
-
-{
- function __func(){}
-}
-
- }
-});
+ "use strict";
+if (!strict_mode) { throw new SyntaxError('unspecified case'); }
+
+{
+ function __func(){}
+}
+