mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-14 06:20:47 +00:00
update
This commit is contained in:
8
node_modules/liquidjs/src/util/assert.js
generated
vendored
Normal file
8
node_modules/liquidjs/src/util/assert.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import { AssertionError } from './error.js'
|
||||
|
||||
export default function (predicate, message) {
|
||||
if (!predicate) {
|
||||
message = message || `expect ${predicate} to be true`
|
||||
throw new AssertionError(message)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user