So i am running into a issue with the syntax checker. the error message it's giving me is 'return outside of function'. which is a bit of untrue. all inline block of javascript are wrapped inside functions, in ScriptInEvents.js file, they are all wrapped in async functions.
why are we not allowed to break out of the code block? it seems a bit unnecessary to wrap my logic in another function. I would also like to avoid as much nesting as a can.
is this intended behavior? or should i file this as a bug?