summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/testWrapWithProtoSet.js
blob: 913918657103af26c80f81dd9b2bd2d9bcdb550a (plain)
1
2
3
4
5
6
7
8
// A scripted proxy can delegate a [[Set]] along to a target
// that's a different kind of proxy.

var target = {};
var wrapper = wrapWithProto(target, null);
var p = new Proxy(wrapper, {});
p.prop = 3;
assertEq(target.prop, 3);