Skip to content

Commit

Permalink
Update library.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Mar 14, 2022
1 parent a44b790 commit fe71aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_pages/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
Expand Down

0 comments on commit fe71aff

Please sign in to comment.