Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Fix small typo #266

Merged
merged 1 commit into from Oct 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/design/transport-js-builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here we just give a high-level description of the solution. Its API will go to [

- napa::v8_extensions::ExternalizedContents
- It holds the externalized contents (memory) of a SharedArrayBuffer instance once it is serialized via napa::v8_extensions::Utils::SerializeValue().
- Only 1 instance of ExternalizedContents wil be generated for each SharedArrayBuffer. If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance created before in napa::v8_extensions::Utils::SerializeValue()
- Only 1 instance of ExternalizedContents will be generated for each SharedArrayBuffer. If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance created before in napa::v8_extensions::Utils::SerializeValue()

- napa::v8_extensions::SerializedData
- It is generated by napa::v8_extensions::Utils::SerializeValue(). It holds the serialized data of a JavaScript object, which is required during its deserialization.
Expand Down Expand Up @@ -120,7 +120,7 @@ function unmarshallTransform(payload: any, context: transportable.TransportConte
- The life cycle extension during transportation is achieved through the ExternalizedContents SharedPtrWrap of the SAB.
- When a SAB is transported for the first time, it will be externalized and its ExternalizedContents will be stored in its SerializedData. At the same time, the SharedPtrWrap of the ExternalizedContents will be set to the '_externalized' property of the original SAB.

- When a SAB is transported for the second time or later, it wil skip externalization and find its ExternalizedContents from its '_externalized' property, and store it to its SerializedData.
- When a SAB is transported for the second time or later, it will skip externalization and find its ExternalizedContents from its '_externalized' property, and store it to its SerializedData.

- When a Napa worker tries to restore a transported SAB, it will find the pre-stored ExternalizedContents, and create a SharedPtrWrap for it, then set it to the to-be-restored SAB.

Expand Down
2 changes: 1 addition & 1 deletion examples/modules/async-number/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Asynchronus numbering
# Asynchronous numbering

## APIs

Expand Down