-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TokenRatesController: Use browser compat eq check
`isDeepStrictEqual` is a function from Node's `util` module. However, it doesn't exist in a browser context, so using it crashes the extension. This commit replaces this function with `fast-equals`' [`strictDeepEqual`][1] function, which essentially does the same thing as [`isDeepStrictEqual`][2] in a more robust way. [1]: https://github.com/planttheidea/fast-equals/blob/7564fcf46a187d011261d4a6d60724cb2ec3a75d/src/equals.ts [2]: https://github.com/sindresorhus/core-assert/blob/fa0ab246046a81deb4cac841fee8b89b4cb3b296/index.js#L165
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 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
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
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