Does JSON.stringify
work with objects that are created like
obj = {}
Object.defineProperty(obj, 'prop', {
get: function() { return 1 }
set: function(value) { ... }
})
It returns {}
when called on this object.
Does JSON.stringify
work with objects that are created like
obj = {}
Object.defineProperty(obj, 'prop', {
get: function() { return 1 }
set: function(value) { ... }
})
It returns {}
when called on this object.