diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-05-04 14:59:50 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-05-04 15:03:43 +0200 |
commit | 594cdf349e1defd37cd6aeb19aefe664c650dac0 (patch) | |
tree | 935399cfdf0a675c79e1ed63da18705dd4223ba1 /README.md | |
parent | 776dc9e3166dfc3735bd72be3acd26ebc6a591f5 (diff) |
lib: implement assert()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1108,3 +1108,8 @@ Throws an exception if the given prototype value is not an object. Pause execution for the given amount of milliseconds. Returns `false` if an invalid value was passed, otherwise `true`. + +#### 6.56. `assert(cond[, message])` + +Raise an exception with the given `message` parameter if the value in `cond` +is not truish. When `message` is omitted, the default value is `Assertion failed`. |