js/src/jit-test/tests/basic/bug673766.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug673766.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +function TestCase(n, d, e, a) {
     1.5 +    this.name = n
     1.6 +    this.description = d
     1.7 +}
     1.8 +function reportCompare(expected, actual, description) {
     1.9 +    new TestCase
    1.10 +}
    1.11 +var actual = '';
    1.12 +var expect = '';
    1.13 +for (var i = 0; i < 2; ++i) reportCompare(expect, actual, ': 2');
    1.14 +try {
    1.15 +    ({
    1.16 +        valueOf: gc
    1.17 +    } - [])
    1.18 +} catch (prop) {}
    1.19 +function addThis() reportCompare(expect, actual, 'RegExp.multiline = 17');
    1.20 +Object.defineProperty(Object.prototype, "name", {
    1.21 +    set: function (newValue) {}
    1.22 +});
    1.23 +addThis()

mercurial