-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControllerEngine: Add test that invalid CO keys do not cause debug assertion #2947
Conversation
I don't understand. What problem is this fixing? Controller scripts shouldn't be connecting to non-existent ControlObjects. |
They shouldn't, but third Party controller mappings are considered "user data" and therefore shouldn't cause a debug assertion IMHO. Instead, we can throw a warning or (or a JS exception). |
Okay, let's throw a JS exception. |
On second thought, just log a warning. Throwing an exception could break old scripts. |
Agreed, but let's throw a JS exception in the new module-based scripting engine. |
Okay, then we need to merge #2920. |
Merge? |
a509d61
to
45fe299
Compare
I rebased on master and noticed that the issue has already been fixed while this PR was open. I removed the fixes from this branch, but let's merge the test that checks that requesting an empty key does not cause a debug assertion and avoid breakage in the future. |
@daschuer Merging although not formally approved. Rejection does not apply any longer. |
LGTM |
No description provided.