summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/crossorigin-common.js
blob: 59bf0fd42fcdd622665538e86fa45960ad3c4bfe (plain)
1
2
3
4
5
6
7
8
document._log = [];
window.addEventListener("error", function (ev) {
    var errorSerialized = ev.lineno + "-" + ev.colno;
    document._log.push(errorSerialized);
});
window.addEventListener("load", function () {
    document._log = document._log.join(",");
});