Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15523 closed defect (fixed)

[patch] [cla] json.stringify doesn't ignore inherited object properties

Reported by: Stefan Bird Owned by: Kris Zyp
Priority: undecided Milestone: 1.8
Component: Core Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

The native JSON.stringify() method ignores an object's inherited properties, but the dojo/json.stringify's fallback code does not.

Without the patch to dojo/json, the included unit test will fail on IE < 9.

Attachments (1)

json.patch (1.1 KB) - added by Stefan Bird 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Stefan Bird

Attachment: json.patch added

comment:1 Changed 7 years ago by bill

Component: GeneralCore
Summary: json.stringify doesn't ignore inherited object properties [PATCH] [CLA][patch] [cla] json.stringify doesn't ignore inherited object properties

comment:2 Changed 7 years ago by bill

Owner: set to Kris Zyp
Status: newassigned

comment:3 Changed 7 years ago by Kris Zyp

Resolution: fixed
Status: assignedclosed

In [28989]:

Don't serialize inherited properties in JSON stringify, fixes #15523 !strict

comment:4 Changed 7 years ago by bill

Milestone: tbd1.8
Note: See TracTickets for help on using tickets.