js/src/jit-test/tests/auto-regress/bug713944.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug713944.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +// Binary: cache/js-dbg-64-7e28cce342a6-linux
     1.5 +// Flags:
     1.6 +//
     1.7 +function f() {
     1.8 +    constructor = {}
     1.9 +}
    1.10 +Object.defineProperty(function() {
    1.11 +    return {}.__proto__
    1.12 +}(), "constructor", {
    1.13 +    set: function() {}
    1.14 +})
    1.15 +f()
    1.16 +Object.defineProperty({}.__proto__, "constructor", {
    1.17 +    value: 3
    1.18 +})
    1.19 +f()

mercurial