diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js new file mode 100644 index 000000000..d363d0c41 --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T3.js @@ -0,0 +1,20 @@ +// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S12.9_A1_T3;
+* @section: 12.9;
+* @assertion: Appearing of "return" without a function body leads to syntax error;
+* @description: Checking if execution of "return" within "try" statement fails;
+* @negative;
+*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+try {
+ return 1;
+} catch(e){
+ return 1;
+}
+//
+//////////////////////////////////////////////////////////////////////////////
|