See troopjs/troopjs-core#172