Open luaVolk opened 5 years ago
That makes sense. I guess this is a side effect of strict mode. I guess the workaround in the meantime is to catch the exception rather that using null.
I wonder if a good backwards compatible fix would be to add a 'tryLookup' function which will return null as you require.
Let's say i have something like this
Wouldn't it make more sense to return null since that's what it actually is?