File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
utils/misc/global-state-diff/v2.0 Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,10 @@ <h3>
267267 function process ( src ) {
268268 console . log ( 'process.script' , src ) ;
269269
270+ var nitem = item . cloneNode ( true ) ;
271+ var $ = nitem . querySelector . bind ( nitem ) ;
272+ $ ( '#url' ) . textContent = src ;
273+
270274 var iframe = document . createElement ( 'iframe' ) ;
271275 iframe . onload = onload ;
272276 document . body . append ( iframe ) ;
@@ -287,17 +291,23 @@ <h3>
287291 win . onerror = err => {
288292 console . log ( 'window.onerror' ) ;
289293 console . error ( err ) ;
294+ $ ( '#values' ) . textContent = err . toString ( ) ;
295+
290296 } //onerror
291297
292298
293299 win . onunhandledrejection = e => {
294- console . warn ( `UNHANDLED PROMISE REJECTION: ${ event . reason } ` ) ;
300+ console . warn ( `UNHANDLED PROMISE REJECTION: ${ e . reason } ` ) ;
301+ $ ( '#values' ) . textContent = e . reason ;
302+
295303 } //onunhandledrejection
296304
297305
298306 script . onerror = err => {
299307 console . log ( 'script.onerror' ) ;
300308 console . error ( err ) ;
309+ $ ( '#values' ) . textContent = err . toString ( ) ;
310+
301311 } //onerror
302312
303313
320330
321331 } ) ;
322332
323- var nitem = item . cloneNode ( true ) ;
324- var $ = nitem . querySelector . bind ( nitem ) ;
325- $ ( '#url' ) . textContent = src ;
326333 $ ( '#values' ) . textContent = str ;
327334
328335 output . append ( nitem ) ;
You can’t perform that action at this time.
0 commit comments