* Custom console.warn implementation with timestamps * @param {...*} args - Arguments to warn about
(...args)
| 332 | * @param {...*} args - Arguments to warn about |
| 333 | */ |
| 334 | function warn(...args) { |
| 335 | const argsWithTime = toStringWithTimeStamp(...args); |
| 336 | _prev_warn(...argsWithTime); |
| 337 | try { |
| 338 | print(...argsWithTime); |
| 339 | } catch (e) { |
| 340 | _prev_warn('Error in warn', e); |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * Custom print function for displaying output in the UI |
nothing calls this directly
no test coverage detected