flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
11
BACK_BACK/node_modules/minimalistic-assert/index.js
generated
vendored
Executable file
11
BACK_BACK/node_modules/minimalistic-assert/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = assert;
|
||||
|
||||
function assert(val, msg) {
|
||||
if (!val)
|
||||
throw new Error(msg || 'Assertion failed');
|
||||
}
|
||||
|
||||
assert.equal = function assertEqual(l, r, msg) {
|
||||
if (l != r)
|
||||
throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue