nl_tokens: https : // html . spec . whatwg . org / multipage / webappapis . html#report - the - error Omits script parameter and any check for muted errors . Takes target as an EventTarget impl . Takes error object message and location as params unlike the spec . Returns whether the event was handled or not .
pl_tokens: function reportAnError ( line , col , target , errorObject , message , location ) { if ( target [ errorReportingMode ] ) { return false ; } target [ errorReportingMode ] = <mask> ; const event = createAnEvent ( "error" , ErrorEvent , { cancelable : true , message , filename : location , lineno : line , colno : col , error : errorObject } ) ; try { target . _dispatch ( event ) ; } finally { target [ errorReportingMode ] = false ; return event . defaultPrevented ; } }