File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default function greenlet(asyncFunction) {
1717 userFunc . apply . bind ( userFunc , userFunc )
1818 ) . then (
1919 // success handler - callback(id, SUCCESS(0), result)
20- // if `d` is transferrable transfer zero-copy
20+ // if `d` is transferable transfer zero-copy
2121 d => {
2222 postMessage ( [ e . data [ 0 ] , 0 , d ] , (
2323 d instanceof ArrayBuffer ||
@@ -61,7 +61,7 @@ export default function greenlet(asyncFunction) {
6161 promises [ ++ currentId ] = arguments ;
6262
6363 // Send an RPC call to the worker - call(id, params)
64- // The filter is to provide a list of transferrables to send zero-copy
64+ // The filter is to provide a list of transferables to send zero-copy
6565 worker . postMessage ( [ currentId , args ] , args . filter ( x => (
6666 x instanceof ArrayBuffer ||
6767 x instanceof MessagePort ||
You can’t perform that action at this time.
0 commit comments