summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/defineProperty-fallback.js
blob: e8f52dc38276f9fbd63c3981d25a6143d3e8862f (plain)
1
2
3
4
5
6
7
8
"use strict";
var obj = {};
Object.defineProperty(obj, "test", {configurable: false, writable: false, value: "hey"});
Object.defineProperty(obj, "test", {configurable: false, writable: false});

var wrapper = new Proxy(obj, {});
Object.defineProperty(wrapper, "test", {configurable: false, writable: false});
assertEq(wrapper.test, "hey");