forked from josdejong/jsoneditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deepEqual for null values (josdejong#600)
When doing a `.update` on an editor that was showing an object and replacing it with `null`, a runtime exception occurs. This is because the `deepEqual` check doesn't account for the fact that `typeof null === 'object'`, so it tries to access properties of a null value.
- Loading branch information
1 parent
bd8bac0
commit 3065dad
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters