From e9dd8a2d83d7171f212e48ca356b0d40dc874166 Mon Sep 17 00:00:00 2001 From: Junseo Yoo Date: Sun, 4 Aug 2024 17:35:25 -0700 Subject: [PATCH] Forgot string and utf8 library --- docs/user-defined-type-functions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index dba3c65..55a9186 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -50,7 +50,9 @@ For the first iteration, the body of a type function will be sandboxed, and its - global functions: `assert`, `error`, `next`, `print`, `rawequal`, `select`, `tonumber`, `tostring`, `type`, `typeof`, `ipairs`, `pairs`, `unpack` - math library - table library +- string library - bit32 library +- utf8 library - buffer library There is also a problem of infinitely running type functions. For example, reducing this type function will halt analysis until the VM stack overflows: