summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-04 14:59:50 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-04 15:03:43 +0200
commit594cdf349e1defd37cd6aeb19aefe664c650dac0 (patch)
tree935399cfdf0a675c79e1ed63da18705dd4223ba1 /README.md
parent776dc9e3166dfc3735bd72be3acd26ebc6a591f5 (diff)
lib: implement assert()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7ceb8df..549459e 100644
--- a/README.md
+++ b/README.md
@@ -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`.