@@ -1640,8 +1640,8 @@ console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
1640
1640
```
1641
1641
1642
1642
Because `vm.runInThisContext()` does not have access to the local scope,
1643
- `localVar` is unchanged. In contrast, [ `eval()`][] _does_ have access to the
1644
- local scope, so the value `localVar` is changed. In this way
1643
+ `localVar` is unchanged. In contrast, a direct `eval()` call _does_ have access
1644
+ to the local scope, so the value `localVar` is changed. In this way
1645
1645
`vm.runInThisContext()` is much like an [indirect `eval()` call][], e.g.
1646
1646
`(0,eval)(' code' )`.
1647
1647
@@ -2041,10 +2041,10 @@ const { Script, SyntheticModule } = require('node:vm');
2041
2041
[HostResolveImportedModule]: https://tc39.es/ecma262/#sec-hostresolveimportedmodule
2042
2042
[ImportDeclaration]: https://tc39.es/ecma262/#prod-ImportDeclaration
2043
2043
[Link() concrete method]: https://tc39.es/ecma262/#sec-moduledeclarationlinking
2044
- [Module Record]: https://262.ecma-international.org/14.0 /#sec-abstract-module-records
2044
+ [Module Record]: https://tc39.es/ecma262 /#sec-abstract-module-records
2045
2045
[Source Text Module Record]: https://tc39.es/ecma262/#sec-source-text-module-records
2046
2046
[Support of dynamic ` import ()` in compilation APIs]: #support-of-dynamic-import-in-compilation-apis
2047
- [Synthetic Module Record]: https://heycam.github.io/webidl/# synthetic-module-records
2047
+ [Synthetic Module Record]: https://tc39.es/ecma262/#sec- synthetic-module-records
2048
2048
[V8 Embedder's Guide]: https://v8.dev/docs/embed#contexts
2049
2049
[WithClause]: https://tc39.es/ecma262/#prod-WithClause
2050
2050
[` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ]: errors.md#err_vm_dynamic_import_callback_missing_flag
@@ -2064,6 +2064,6 @@ const { Script, SyntheticModule } = require('node:vm');
2064
2064
[` vm .runInContext ()` ]: #vmrunincontextcode-contextifiedobject-options
2065
2065
[` vm .runInThisContext ()` ]: #vmruninthiscontextcode-options
2066
2066
[contextified]: #what-does-it-mean-to-contextify-an-object
2067
- [global object]: https://es5.github.io/#x15.1
2068
- [indirect ` eval ()` call]: https://es5.github.io/#x10.4.2
2067
+ [global object]: https://tc39.es/ecma262/#sec-global-object
2068
+ [indirect ` eval ()` call]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#direct_and_indirect_eval
2069
2069
[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin
0 commit comments