Repository navigation
vm: misleading language #10697
Description
Activity
- addedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
on Jan 8, 2017 @mscdex what about just "the caller's context"?
I'd probably be okay with that too.
Or, even better, taking the previous sentence into account:
Note: The
require()in the above case shares the state with context it is
passed from. This may introduce risks when untrusted code is executed, e.g.
altering objects from the this context in unwanted ways.It is as simple as possible and it's not misleading like my previous suggestion actually is, too, after some thinking about it. (The word "caller" sounds like "the caller of require" which is certainly not the case since it may be called from another sandbox).
Yep :-) (although s/state with context/state with the context/ and s/the this context/the context/)
Yeah, that's even better. I'll open a PR in a moment.
Reacted by mscdex@mscdex and "the this" is a typo, I meant just "this" :)
- added 2 commits that reference this issue
on Mar 7, 2017 - added a commit that references this issue
on Jul 27, 2026
The note following the
http.Serverexample in thevmdocumentation contains misleading language. Specifically, it mentions "the calling thread's context" when it has nothing to do with threading since code execution viavmhappens on the same thread. The note makes it sound as if this is not the case.I'm not sure what wording would describe this more accurately. "the parent context?" "the original context?"