Sha256: f218a133022bc049f16ec419ed677a72aa5b3618bc3e5f6b4182faa42c089aef

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

/* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

(function() {
    var b = 10;
    var fff = function() { return --b >= 0; };
    var src = "while (fff());";
    eval(src, null);
    b = 10;
    try {
        eval(src, {fff: function() {throw 0;}});
        throw new Error("Unexpected success of eval");
    } catch (e) {
        if (e !== 0)
            throw e;
    }
})();

// We expect this to finish without crashes or exceptions

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
johnson19-2.0.0.pre3 vendor/tracemonkey/trace-test/tests/basic/bug531037.js
pre-johnson-2.0.0 vendor/tracemonkey/trace-test/tests/basic/bug531037.js
johnson-2.0.0.pre3 vendor/tracemonkey/trace-test/tests/basic/bug531037.js
johnson-2.0.0.pre2 vendor/tracemonkey/trace-test/tests/basic/bug531037.js
johnson-2.0.0.pre1 vendor/tracemonkey/trace-test/tests/basic/bug531037.js