Skip to content

Commit

Permalink
assert: refactor to reduce unecessary code paths
Browse files Browse the repository at this point in the history
The lazy loading is not needed as the errors themself lazy
load assert. Therefore the circle is working as intended
even without this lazy loading.

Improve Array, object, ArrayBuffer, Set and Map performance
in all deepEqual checks by removing unecessary code paths and
by moving expensive checks further back.

Improve throws and doesNotThrow performance by removing dead
code and simplifying the overall logic.

PR-URL: #13973
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
BridgeAR authored and addaleax committed Jul 28, 2017
1 parent 7c51240 commit 9252b8c
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 193 deletions.
Loading

0 comments on commit 9252b8c

Please sign in to comment.