Object.getOwnPropertyDescriptor(Document.prototype, "cookie");
Object.getOwnPropertyDescriptor(HTMLDocument.prototype, "cookie");
In htmlunit, I got :
{"get":"function cookie() {...}","enumerable":true,"configurable":true}
{"get":"function cookie() {...}","set":"function cookie() {...}","enumerable":true,"configurable":true}
In real browser(Chrome/Firefox), I got:
{"get":"function cookie() {...}","set":"function cookie() {...}","enumerable":true,"configurable":true}
undefined