mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
4 years ago
2 changed files with 20 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||
// https://github.com/svaarala/duktape/issues/2207
|
|||
|
|||
/*=== |
|||
{"foo":0,"nonEnumerable":0} |
|||
done |
|||
===*/ |
|||
|
|||
Object.defineProperty(Array.prototype, 0, { set: function () { } }); |
|||
|
|||
function jsonStringifyOwnKeysProxyTest () { |
|||
target = { foo: 0, nonEnumerable: 0 }; |
|||
proxy = new Proxy(target, { $: function () { }, ownKeys: function () { return [ 'foo', 'nonEnumerable' ] } }); |
|||
print(String(JSON.stringify(proxy))); |
|||
} |
|||
|
|||
jsonStringifyOwnKeysProxyTest(); |
|||
print('done'); |
Loading…
Reference in new issue