Skip to content

Commit 3db7a9f

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: fix, unify, formalize, and amplify vm.md
`vm` module API heavily reuses common code, but the doc seems to be a bit out of date: some options are listed in wrong places, some options and history entries are missed. Also some fragments need to be formalized and unified. PR-URL: #25422 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
1 parent ebd2027 commit 3db7a9f

File tree

3 files changed

+211
-86
lines changed

3 files changed

+211
-86
lines changed

doc/api/v8.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ A subclass of [`Deserializer`][] corresponding to the format written by
414414
[`serializer.releaseBuffer()`]: #v8_serializer_releasebuffer
415415
[`serializer.transferArrayBuffer()`]: #v8_serializer_transferarraybuffer_id_arraybuffer
416416
[`serializer.writeRawBytes()`]: #v8_serializer_writerawbytes_buffer
417-
[`vm.Script`]: vm.html#vm_new_vm_script_code_options
417+
[`vm.Script`]: vm.html#vm_constructor_new_vm_script_code_options
418418
[HTML structured clone algorithm]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
419419
[V8]: https://developers.google.com/v8/
420420
[here]: https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md

0 commit comments

Comments
 (0)