js/src/jit-test/tests/jaeger/loops/bug684621.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/jaeger/loops/bug684621.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +function runRichards() {
     1.5 +    queue = new Packet;
     1.6 +    Packet(queue, ID_DEVICE_A, KIND_DEVICE);
     1.7 +    new Packet;
     1.8 +}
     1.9 +var ID_DEVICE_A = 4;
    1.10 +var KIND_DEVICE = 0;
    1.11 +Packet = function (queue) {
    1.12 +    this.link = null
    1.13 +    if (queue == null) return;
    1.14 +    var peek, next = queue;
    1.15 +    while ((peek = next.link) != null)
    1.16 +    ID_HANDLER_B
    1.17 +};
    1.18 +runRichards()

mercurial