buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.15k stars 31 forks source link

`typeof` builtin method is not handled #292

Open giann opened 1 month ago

giann commented 1 month ago
typeof ("hello".split);

Crashes right now because ObjNative do not embark their type at runtime. In the case of list and maps, we use the same ObjNative for any list or map which ever item/key/value type they have.