1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/proxy/testDirectProxyGet5.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +// Return the trap result 1.5 +assertEq(new Proxy({ 1.6 + foo: 'bar' 1.7 +}, { 1.8 + get: function (target, name, receiver) { 1.9 + return 'baz'; 1.10 + } 1.11 +}).foo, 'baz'); 1.12 + 1.13 +assertEq(new Proxy({ 1.14 + foo: 'bar' 1.15 +}, { 1.16 + get: function (target, name, receiver) { 1.17 + return undefined; 1.18 + } 1.19 +}).foo, undefined);