aboutsummaryrefslogtreecommitdiffstats
path: root/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js
diff options
context:
space:
mode:
authorMark Miller <erights@gmail.com>2011-06-27 08:52:25 -0600
committerMark Miller <erights@gmail.com>2011-06-27 08:52:25 -0600
commita23061829155a73e9d782c9fdc8f0f32144fa0b6 (patch)
treee9d5dc74d4aab97ba6835f72c4990e680784f1ba /external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js
parent02e7fb9cfa922ffb0f02a026148c516c735b035c (diff)
Updating Google contribution to r97 of sputniktests.
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js')
-rw-r--r--external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js
index ac7bb5f8c..28e118c87 100644
--- a/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js
+++ b/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.6_Iteration_Statements/12.6.1_The_do_while_Statement/S12.6.1_A13_T1.js
@@ -4,11 +4,15 @@
/**
* @name: S12.6.1_A13_T1;
* @section: 12.6.1, 13;
-* @assertion: FunctionDeclaration within a "do-while" Block is not allowed;
+* @assertion: FunctionDeclaration within a "do-while" Block in strict
+* code is not allowed;
* @description: Declaring function within a "do-while" loop;
-* @negative;
+* @negative SyntaxError;
*/
+"use strict";
+if (!strict_mode) { throw new SyntaxError('unspecified case'); }
+
do{
function __func(){};
} while(0);