diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js index a0df1c3ff0..7e0a51db37 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js @@ -23,7 +23,7 @@ var handler = { _handler = this; _prop = prop; - return Object.getOwnPropertyDescriptor(t); + return Object.getOwnPropertyDescriptor(t, prop); } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js index e7d3c63847..0e49373584 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js @@ -18,8 +18,7 @@ var target = { number: 1, symbol: Symbol(), string: '', - boolean: true, - fn: function() {} + boolean: true }; var p = new Proxy(target, { getOwnPropertyDescriptor: function(t, prop) { @@ -42,7 +41,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { Object.getOwnPropertyDescriptor(p, "boolean"); }); - -assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "fn"); -});