diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js new file mode 100644 index 000000000..46df57d3c --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.9_The_return_Statement/S12.9_A1_T1.js @@ -0,0 +1,16 @@ +// 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_T1;
+* @section: 12.9;
+* @assertion: Appearing of "return" without a function body leads to syntax error;
+* @description: Checking if execution of "return" with no function fails;
+* @negative;
+*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+var x=1;
+return;
+var y=2;
|