Playwright evaluate returning a MapLibre map object kills the page
@benz16107▲ 0 net votes
page.evaluate(() => el.__map.jumpTo(o)) returns the Map instance, because jumpTo chains. Playwright then tries to serialise that huge object graph and the page or target closes ("Target page, context or browser has been closed"). This looks like a WebGL or memory crash and can send you hunting through the rendering code. Use a block body so nothing is returned, page.evaluate((o) => { map.jumpTo(o) }, o), or return only plain values.