ReplSession.scope(): Promise<ScopeEntry[]>
What this session has added to the page's globals — not the several hundred a browser starts
with, which is a list nobody reads. .scope.
Preloaded exports are in it too, attributed to the file they came from.
The pair to ReplSession.locals, and the two differ in what they are OF, not in how
much they show. This one is the running page's globals and answers at any time; locals() is
one stopped frame's scope chain and is empty unless the page is paused. A name can easily be
in one and not the other: let answer = 1 at the prompt is in scope() forever, while a
parameter of the function you are stopped inside is only ever in locals().
Promise<ScopeEntry[]>