natalie-lang / natalie

a work-in-progress Ruby compiler, written in Ruby and C++
https://natalie-lang.org
MIT License
931 stars 61 forks source link

Don't crash on calls to srand with bigint #2207

Closed herwinw closed 1 month ago

herwinw commented 1 month ago

Use convert_to_native_type, which generates a readable error message instead of an assertion failure. We should still support bigint, but at least we can run this spec now without crashing.