summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug600424.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/bug600424.js')
-rw-r--r--js/src/jit-test/tests/jaeger/bug600424.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug600424.js b/js/src/jit-test/tests/jaeger/bug600424.js
new file mode 100644
index 0000000000..e59a06614f
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug600424.js
@@ -0,0 +1,14 @@
+// vim: set ts=8 sts=4 et sw=4 tw=99:
+function f(a) {
+ var x = {
+ g: function () {
+ return this.a;
+ }
+ };
+ x.g.prototype.a = a;
+ assertEq(x.g.prototype.a, a);
+ return x;
+}
+f(1);
+f(2);
+f(3);