summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js b/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js
new file mode 100644
index 000000000..be589ead3
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/bestPractice/Sbp_A1_T1.js
@@ -0,0 +1,17 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * The production Block { } in strict code can't contain function
+ * declaration;
+ *
+ * @description: Trying to declare function at the Block statement;
+ * @negative SyntaxError
+ * @onlyStrict
+ * @bestPractice
+ * http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
+ */
+"use strict";
+{
+ function __func(){}
+}