summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/target-becomes-nonextensible-during-preventExtensions.js
blob: 3ef475c72887bba243bab247103c0bec89d2e1d4 (plain)
1
2
3
4
5
6
7
8
// Don't assert
var obj = {};
var proxy = new Proxy(obj, {
    get preventExtensions() {
        Object.preventExtensions(obj);
    }
});
Object.preventExtensions(proxy);