See comment in bug.js