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

Commit

Permalink
Fix small typo (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Miedl authored and helloshuangzi committed Oct 22, 2018
1 parent 7a6f354 commit aa3200e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit aa3200e

Please sign in to comment.