You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I accidentally introduced a regression in my jlox interpreter - the one builtin function, clock, could take arbitrary arguments. I didn't notice for a bit since the jlox suite kept passing. The fix is pretty simple: add a test (in tests/function? in tests/regression?) to ensure clock errors if it is given arguments.
I accidentally introduced a regression in my jlox interpreter - the one builtin function,
clock
, could take arbitrary arguments. I didn't notice for a bit since the jlox suite kept passing. The fix is pretty simple: add a test (in tests/function? in tests/regression?) to ensureclock
errors if it is given arguments.clock_args.lox:
clock(0); // expect runtime error: Expected 0 arguments but got 1.
The text was updated successfully, but these errors were encountered: