aboutsummaryrefslogtreecommitdiffstats
path: root/external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js')
-rw-r--r--external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js b/external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js
new file mode 100644
index 000000000..23294e7ec
--- /dev/null
+++ b/external/contributions/Google/sputniktests/tests/Regression/S11.13.2_R2.3_T7.js
@@ -0,0 +1,23 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S11.13.2_R2.3_T7;
+ * @section: 11.13.2;
+ * @description: Result is not ToInt32(Undefined) >> ToInt32(AssignmentExpression);
+*/
+
+//CHECK#1
+try {
+ x >>= new String("-1");
+ if (x === 0) {
+ $ERROR('#1: Result is not ToInt32(Undefined) >> ToInt32(AssignmentExpression)');
+ } else {
+ $ERROR('#1: x >>= new String("-1") throw ReferenceError');
+ }
+}
+catch (e) {
+ if ((e instanceof ReferenceError) !== true) {
+ $ERROR('#1: x >>= new String("-1") throw ReferenceError');
+ }
+}