assert: create internal/assert micro-module · nodejs/node@0b4055e · GitHub
Skip to content

Commit 0b4055e

Browse files
Trottaddaleax
authored andcommitted
assert: create internal/assert micro-module
For use in built-in modules that could benefit from `assert()` without having to load the entire module (unless an AssertionError actually occurs): lib/internal/assert.js. PR-URL: #25956 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
1 parent 37d207c commit 0b4055e

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

lib/internal/assert.js

Lines changed: 9 additions & 0 deletions

node.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
'lib/vm.js',
8585
'lib/worker_threads.js',
8686
'lib/zlib.js',
87+
'lib/internal/assert.js',
8788
'lib/internal/assert/assertion_error.js',
8889
'lib/internal/async_hooks.js',
8990
'lib/internal/bash_completion.js',
Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)