summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.js b/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.js
new file mode 100644
index 000000000..ab5a9faba
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.2_Lexical_Environments/10.2.3_The_Global_Environment/S10.1.5_A2.2_T4.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: S10.1.5_A2.2_T4;
+ * @section: 10.1.5, 15.1;
+ * @assertion: Global object properties have attributes { DontEnum };
+ * @description: Function execution context - Other Properties;
+*/
+
+function test() {
+ //CHECK#1
+ for (var x in this) {
+ if ( x === 'Math' ) {
+ $ERROR("#1: 'Math' have attribute DontEnum");
+ }
+ }
+}
+
+test();