Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/dev_compiler/lib/js/legacy/dart_library.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ dart_library =

/** Note that we cannot use dart_utils.throwInternalError from here. */
function throwLibraryError(message) {
// Dispatch event to allow others to react to the load error without
// capturing the exception.
var errorEvent = new CustomEvent('dartLoadException', { detail: message });
window.dispatchEvent(errorEvent);
throw Error(message);
}

Expand Down