Skip to content

Commit a1b4681

Browse files
danbevtargos
authored andcommitted
src: use transferred consistently
This commit updates usages of transfered to be transferred to make it consist in all comments. PR-URL: #36340 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent c1364d1 commit a1b4681

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/base_object.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ class BaseObject : public MemoryRetainer {
111111
// the current object:
112112
// - kUntransferable:
113113
// No transfer is possible, either because this type of BaseObject does
114-
// not know how to be transfered, or because it is not in a state in
114+
// not know how to be transferred, or because it is not in a state in
115115
// which it is possible to do so (e.g. because it has already been
116-
// transfered).
116+
// transferred).
117117
// - kTransferable:
118-
// This object can be transfered in a destructive fashion, i.e. will be
118+
// This object can be transferred in a destructive fashion, i.e. will be
119119
// rendered unusable on the sending side of the channel in the process
120-
// of being transfered. (In C++ this would be referred to as movable but
120+
// of being transferred. (In C++ this would be referred to as movable but
121121
// not copyable.) Objects of this type need to be listed in the
122122
// `transferList` argument of the relevant postMessage() call in order to
123123
// make sure that they are not accidentally destroyed on the sending side.

src/node_messaging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MessagePort;
1616
typedef MaybeStackBuffer<v8::Local<v8::Value>, 8> TransferList;
1717

1818
// Used to represent the in-flight structure of an object that is being
19-
// transfered or cloned using postMessage().
19+
// transferred or cloned using postMessage().
2020
class TransferData : public MemoryRetainer {
2121
public:
2222
// Deserialize this object on the receiving end after a .postMessage() call.

0 commit comments

Comments
 (0)