From fe71aff7af4d09bc398bd14d128277c31c12e824 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 14 Mar 2022 10:30:49 -0700 Subject: [PATCH] Update library.md --- docs/_pages/library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/library.md b/docs/_pages/library.md index 7695762d..28e7035a 100644 --- a/docs/_pages/library.md +++ b/docs/_pages/library.md @@ -128,7 +128,7 @@ Returns the type of the object, which is one of `"nil"`, `"boolean"`, `"number"` function typeof(obj: any): string ``` -Returns the type of the object; for userdata objects that have a metatable with the `__type` field *and* are defined by the host with an internal tag, returns the value for that key. +Returns the type of the object; for userdata objects that have a metatable with the `__type` field *and* are defined by the host (not `newproxy`), returns the value for that key. For custom userdata objects, such as ones returned by `newproxy`, this function returns `"userdata"` to make sure host-defined types can not be spoofed. ```