Missing `error` event
See original GitHub issueWindow’s error
event should come from https://github.com/Microsoft/TSJS-lib-generator/blob/master/inputfiles/browser.webidl.xml#L12798, but it is missing with the generated .d.ts file.
https://github.com/Microsoft/TSJS-lib-generator/blob/master/baselines/dom.generated.d.ts#L13045
@zhengbli Can you take a look?
cc @SaschaNaz for your pr.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Missing Error Handling | OWASP Foundation
An “HTTP 404 - File not found” error tells an attacker that the requested file doesn't exist rather than that they don't have...
Read more >Troubleshoot the error - Event Message Not Found
This article helps you troubleshoot the error in Event Viewer: Event Message Not Found. Original product version: Windows
Read more >SyntaxError: missing ) after condition - JavaScript | MDN
The JavaScript exception "missing ) after condition" occurs when there is an error with how an if condition is written. It must appear...
Read more >Event Viewer Logs Are Missing in Windows 10 FIX - YouTube
Event Viewer Logs Are Missing in Windows 10 FIX.Issues addressed in this tutorial: event viewer logs location windows 10event viewer logs ...
Read more >CWE-544: Missing Standardized Error Handling Mechanism
The software does not use a standardized method for handling errors throughout the code, which might introduce inconsistent error handling and resultant ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a reason why the generated
GlobalEventHandlers
entries all look likeexcept for
onerror
, which is justErrorEventHandler
, without allowing fornull
? Is it actually not legal to un-register the error handler by settingwindow.onerror = null
?If this is incorrect, should I open a separate issue to fix it?
This is because the
onerror
event property has a special handler named ErrorEventHandler instead of normal EventHandler. TS.fsx (incorrectly) checks only for EventHandler thus theerror
event is omitted.