docs: update verb tenses for structured clone notes (#27501)

Co-authored-by: Erick Zhao <erick@hotmail.ca>
This commit is contained in:
trop[bot]
2021-01-27 17:06:17 +09:00
committed by GitHub
parent 80a3f10b6b
commit da58ded8f9
2 changed files with 14 additions and 19 deletions

View File

@@ -62,10 +62,9 @@ included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will
throw an exception. throw an exception.
> **NOTE:** Sending non-standard JavaScript types such as DOM objects or > **NOTE:** Sending non-standard JavaScript types such as DOM objects or
> special Electron objects is deprecated, and will begin throwing an exception > special Electron objects will throw an exception.
> starting with Electron 9. >
> Since the main process does not have support for DOM objects such as
> **NOTE:** Since the main process does not have support for DOM objects such as
> `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over > `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
> Electron's IPC to the main process, as the main process would have no way to decode > Electron's IPC to the main process, as the main process would have no way to decode
> them. Attempting to send such objects over IPC will result in an error. > them. Attempting to send such objects over IPC will result in an error.
@@ -90,11 +89,10 @@ Algorithm][SCA], just like [`window.postMessage`][], so prototype chains will no
included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will
throw an exception. throw an exception.
> **NOTE**: Sending non-standard JavaScript types such as DOM objects or > **NOTE:** Sending non-standard JavaScript types such as DOM objects or
> special Electron objects is deprecated, and will begin throwing an exception > special Electron objects will throw an exception.
> starting with Electron 9. >
> Since the main process does not have support for DOM objects such as
> **NOTE:** Since the main process does not have support for DOM objects such as
> `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over > `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
> Electron's IPC to the main process, as the main process would have no way to decode > Electron's IPC to the main process, as the main process would have no way to decode
> them. Attempting to send such objects over IPC will result in an error. > them. Attempting to send such objects over IPC will result in an error.
@@ -134,11 +132,10 @@ Algorithm][SCA], just like [`window.postMessage`][], so prototype chains will no
included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will
throw an exception. throw an exception.
> **NOTE**: Sending non-standard JavaScript types such as DOM objects or > **NOTE:** Sending non-standard JavaScript types such as DOM objects or
> special Electron objects is deprecated, and will begin throwing an exception > special Electron objects will throw an exception.
> starting with Electron 9. >
> Since the main process does not have support for DOM objects such as
> **NOTE:** Since the main process does not have support for DOM objects such as
> `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over > `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
> Electron's IPC to the main process, as the main process would have no way to decode > Electron's IPC to the main process, as the main process would have no way to decode
> them. Attempting to send such objects over IPC will result in an error. > them. Attempting to send such objects over IPC will result in an error.

View File

@@ -1658,8 +1658,7 @@ included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will
throw an exception. throw an exception.
> **NOTE**: Sending non-standard JavaScript types such as DOM objects or > **NOTE**: Sending non-standard JavaScript types such as DOM objects or
> special Electron objects is deprecated, and will begin throwing an exception > special Electron objects will throw an exception.
> starting with Electron 9.
The renderer process can handle the message by listening to `channel` with the The renderer process can handle the message by listening to `channel` with the
[`ipcRenderer`](ipc-renderer.md) module. [`ipcRenderer`](ipc-renderer.md) module.
@@ -1707,9 +1706,8 @@ Send an asynchronous message to a specific frame in a renderer process via
chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or
WeakSets will throw an exception. WeakSets will throw an exception.
> **NOTE**: Sending non-standard JavaScript types such as DOM objects or > **NOTE:** Sending non-standard JavaScript types such as DOM objects or
> special Electron objects is deprecated, and will begin throwing an exception > special Electron objects will throw an exception.
> starting with Electron 9.
The renderer process can handle the message by listening to `channel` with the The renderer process can handle the message by listening to `channel` with the
[`ipcRenderer`](ipc-renderer.md) module. [`ipcRenderer`](ipc-renderer.md) module.