Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-26 07:21:27 +0300
committerMichaël Zasso <targos@protonmail.com>2019-03-30 15:16:39 +0300
commitf86f5736da72ad4f3fb50692461222590e2f0258 (patch)
tree6fee263bfca24abbf76b7a3f1517b8184c29f077 /lib/internal/assert
parentf0b3855a90bc5f68fe38ea5e7c69d30ae7d81a27 (diff)
benchmark,lib: change var to const
Refs: https://github.com/nodejs/node/pull/26679 PR-URL: https://github.com/nodejs/node/pull/26915 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'lib/internal/assert')
-rw-r--r--lib/internal/assert/assertion_error.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js
index ea2a999a60e..e12318ec54b 100644
--- a/lib/internal/assert/assertion_error.js
+++ b/lib/internal/assert/assertion_error.js
@@ -292,13 +292,15 @@ class AssertionError extends Error {
if (typeof options !== 'object' || options === null) {
throw new ERR_INVALID_ARG_TYPE('options', 'Object', options);
}
- var {
- actual,
- expected,
+ const {
message,
operator,
stackStartFn
} = options;
+ let {
+ actual,
+ expected
+ } = options;
const limit = Error.stackTraceLimit;
Error.stackTraceLimit = 0;