summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-634210-4.js
blob: e4ff870d5f9757829a2495985f71adf4fa56388c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

function outer() {
    function f() {}
    f.p = function() {};
    Object.seal(f);
    return f.p;
}

var m1 = outer();
var m2 = outer();
assertEq(m1 === m2, false);

m1.foo = "hi";
assertEq(m2.foo, undefined);

reportCompare(0, 0, "ok");