first commit
This commit is contained in:
11
app_vue/node_modules/minimalistic-assert/index.js
generated
vendored
Normal file
11
app_vue/node_modules/minimalistic-assert/index.js
generated
vendored
Normal 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));
|
||||
};
|
Reference in New Issue
Block a user