warning_reporter_worker.js (253B)
1 let caught = false; 2 try { 3 // This reports: 4 // * a warning for the unreachable code 5 // * an error for a garbage after the function body 6 new Function("return 0; 1;}"); 7 } catch (e) { 8 caught = true; 9 } 10 11 postMessage({ type: "finish", caught });