-
Notifications
You must be signed in to change notification settings - Fork 105
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
Error report now only appears when DropDownDiv not visible #55
Conversation
Attachment: Extension for test: class Test {
getInfo() {
return {
id: 'test',
name: 'test',
blocks: [
{ blockType: 'command', opcode: 'test', arguments: {}, text: 'test' }
]
}
}
test() {
throw new Error('test')
}
}
Scratch.extensions.register(new Test()); |
how exactly does this achieve its target goal? |
ok but on a more serious note, wont this prevent errors from showing if you happen to already have a dropdown open |
|
no that function is called when any error is reported |
if |
what im saying is, if you run some piece of code that takes a while then open a dropdown and that piece of code errors, you wont see it, only the error outline |
yea, i think thats intended since you are dealing with DropDownDiv (that means ur already know how to open DevTools console) and its rare (edge) situation. |
my guy you sound insain if you for somereason absolutely require the source code to be patched over and can not do anything at all somehow, then patch it over inside your own code |
@RedMan13 Please reconsider this PR. If you read Blockly source code more carefully, you will notice that any gesture triggers |
that is not the order i stated, the order i stated was you run the script then open a dropdown, and the block wont be able to throw the error |
PenguinMod doesn't even handle asynchronous extension errors, so maybe it's fine...? |
Resolves
Proposed Changes
Error report now only appears when DropDownDiv not visible.
Reason for Changes
It allows universal custom report block or advanced DropDownDiv usage.
Test Coverage
N/A
Browser Coverage
Check the OS/browser combinations tested (At least 2)
Mac
Windows
Chromebook
iPad
Android Tablet
Note: Tests not required for this pull request