summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug652305.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/jaeger/bug652305.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug652305.js b/js/src/jit-test/tests/jaeger/bug652305.js
new file mode 100644
index 0000000000..78df18aadf
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug652305.js
@@ -0,0 +1,25 @@
+var sjcl = {
+ cipher: {},
+};
+var global = 99;
+sjcl.cipher.aes = function (a) {
+ var b, c, d, e, f = this.h[0][4],
+ g = this.h[1];
+ d = a.slice(0);
+ this.a = [d, []];
+ for (a = 8; a < 60; a++) {
+ c = d[a - 1];
+ if (a % 8 === 0) {
+ c = global;
+ if (0 === 0) {
+ h = 2;
+ }
+ }
+ d[a] = c;
+ }
+ assertEq(this.a[0][50], 99);
+};
+sjcl.cipher.aes.prototype = {
+ h: [[[], [], [], [], [99, 0]], [[67175681, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 65537], [17039621, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 16777472], [83952641, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 65537], [17105156, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 16777472], []]],
+};
+new sjcl.cipher.aes([0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]);