summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-567152.js
blob: 02f7b2401d12beb30b9ba4751e72038af51e2aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
// Contributors: Gary Kwong <gary@rumblingedge.com>,
//               Jason Orendorff <jorendorff@mozilla.com>

function c(a) {
    this.f = function () { a; };
}
c(0);  // set both BRANDED and GENERIC bits in global scope
Object.defineProperty(this, "f", {configurable: true, enumerable: true, value: 3});

reportCompare(0, 0, "");