summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js b/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js
new file mode 100644
index 000000000..eda9d8ac5
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.1_Types_of_Executable_Code/S10.1.6_A1_T3.js
@@ -0,0 +1,19 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S10.1.6_A1_T3;
+ * @section: 10.1.6;
+ * @assertion: The activation object is initialised with a property with name arguments and attributes {DontDelete};
+ * @description: Checking function which returns "this";
+ * @non_strict_only
+*/
+
+function f1() {
+ if (delete arguments) {
+ $ERROR("#1: Function parameters have attribute {DontDelete}" + arguments);
+ }
+ return arguments;
+}
+
+f1();