diff options
Diffstat (limited to 'test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js')
-rw-r--r-- | test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js index 338883edb..4dba72b98 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js @@ -29,19 +29,19 @@ info: | var target = {}; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - var foo = {}; + getOwnPropertyDescriptor: function(t, prop) { + var foo = {}; - Object.defineProperty(foo, "bar", { - configurable: false, - enumerable: true, - value: 1 - }); + Object.defineProperty(foo, "bar", { + configurable: false, + enumerable: true, + value: 1 + }); - return Object.getOwnPropertyDescriptor(foo, prop); - } + return Object.getOwnPropertyDescriptor(foo, prop); + } }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "bar"); + Object.getOwnPropertyDescriptor(p, "bar"); }); |