What is this error?

I was trying to make a runtime error with the fewest characters, and img(0) confused me. It generates an error, but for whatever reason, the project still runs. The error is this: !!proc || !bin.finalPass and can be shown here. What does this mean?

2 Likes

Because the img`.` functionality is kinda a built in function mapping directly to a c++ function, it is probably just kinda skipped over and ignored even though it’s technically an error. My assumption would be that simply the JavaScript part of the editor doesn’t know or care that the c++ is erroring and just replaces the value with undefined and moves on:

If control.fail("") doesn’t fit your criteria, maybe let f=()=>{f()};f() will…

1 Like