state: 0
state: 0
increment state
current state: 1
increment state
current state: 2
increment state
current state: 3
*%(basename)s:17: Error
    setTimeout(function() { throw new Error(); });
                            ^
Error
    at *%(basename)s:17:35