question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing `error` event

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thw0rtedcommented, Dec 20, 2018

Is there a reason why the generated GlobalEventHandlers entries all look like

    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;

except for onerror, which is just ErrorEventHandler, without allowing for null? Is it actually not legal to un-register the error handler by setting window.onerror = null?

If this is incorrect, should I open a separate issue to fix it?

1reaction
saschanazcommented, May 18, 2017

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 the error event is omitted.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found