@@ -1555,8 +1555,8 @@ console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
1555
1555
```
1556
1556
1557
1557
Because `vm.runInThisContext()` does not have access to the local scope,
1558
- `localVar` is unchanged. In contrast, [ `eval()`][] _does_ have access to the
1559
- local scope, so the value `localVar` is changed. In this way
1558
+ `localVar` is unchanged. In contrast, a direct `eval()` call _does_ have access
1559
+ to the local scope, so the value `localVar` is changed. In this way
1560
1560
`vm.runInThisContext()` is much like an [indirect `eval()` call][], e.g.
1561
1561
`(0,eval)(' code' )`.
1562
1562
@@ -1954,10 +1954,10 @@ const { Script, SyntheticModule } = require('node:vm');
1954
1954
[GetModuleNamespace]: https://tc39.es/ecma262/#sec-getmodulenamespace
1955
1955
[HostResolveImportedModule]: https://tc39.es/ecma262/#sec-hostresolveimportedmodule
1956
1956
[Link() concrete method]: https://tc39.es/ecma262/#sec-moduledeclarationlinking
1957
- [Module Record]: https://262.ecma-international.org/14.0 /#sec-abstract-module-records
1957
+ [Module Record]: https://tc39.es/ecma262 /#sec-abstract-module-records
1958
1958
[Source Text Module Record]: https://tc39.es/ecma262/#sec-source-text-module-records
1959
1959
[Support of dynamic ` import ()` in compilation APIs]: #support-of-dynamic-import-in-compilation-apis
1960
- [Synthetic Module Record]: https://heycam.github.io/webidl/# synthetic-module-records
1960
+ [Synthetic Module Record]: https://tc39.es/ecma262/#sec- synthetic-module-records
1961
1961
[V8 Embedder's Guide]: https://v8.dev/docs/embed#contexts
1962
1962
[` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ]: errors.md#err_vm_dynamic_import_callback_missing_flag
1963
1963
[` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ]: errors.md#err_vm_dynamic_import_callback_missing
@@ -1975,6 +1975,6 @@ const { Script, SyntheticModule } = require('node:vm');
1975
1975
[` vm .runInContext ()` ]: #vmrunincontextcode-contextifiedobject-options
1976
1976
[` vm .runInThisContext ()` ]: #vmruninthiscontextcode-options
1977
1977
[contextified]: #what-does-it-mean-to-contextify-an-object
1978
- [global object]: https://es5.github.io/#x15.1
1979
- [indirect ` eval ()` call]: https://es5.github.io/#x10.4.2
1978
+ [global object]: https://tc39.es/ecma262/#sec-global-object
1979
+ [indirect ` eval ()` call]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#direct_and_indirect_eval
1980
1980
[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin
0 commit comments