Skip to content

Commit

Permalink
bthreads: expose receiveMessageOnPort. see nodejs/node#27294.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Apr 19, 2019
1 parent 9ccdd87 commit adcc5c4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports.MessagePort = MessagePortBase;
exports.MessageChannel = MessageChannel;
exports.Worker = Worker;
exports.moveMessagePortToContext = null;
exports.receiveMessageOnPort = null;
exports.SHARE_ENV = Symbol.for('nodejs.worker_threads.SHARE_ENV');
exports.importScripts = null;

Expand Down
1 change: 1 addition & 0 deletions lib/browser/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports.MessagePort = MessagePortBase;
exports.MessageChannel = MessageChannel;
exports.Worker = Worker;
exports.moveMessagePortToContext = null;
exports.receiveMessageOnPort = null;
exports.SHARE_ENV = Symbol.for('nodejs.worker_threads.SHARE_ENV');
exports.importScripts = importScripts;

Expand Down
1 change: 1 addition & 0 deletions lib/process/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports.MessagePort = MessagePortBase;
exports.MessageChannel = MessageChannel;
exports.Worker = Worker;
exports.moveMessagePortToContext = null;
exports.receiveMessageOnPort = null;
exports.SHARE_ENV = Symbol.for('nodejs.worker_threads.SHARE_ENV');
exports.importScripts = null;

Expand Down
1 change: 1 addition & 0 deletions lib/process/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports.MessagePort = MessagePortBase;
exports.MessageChannel = MessageChannel;
exports.Worker = Worker;
exports.moveMessagePortToContext = null;
exports.receiveMessageOnPort = null;
exports.SHARE_ENV = Symbol.for('nodejs.worker_threads.SHARE_ENV');
exports.importScripts = null;

Expand Down
1 change: 1 addition & 0 deletions lib/threads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ exports.MessagePort = threads.MessagePort;
exports.MessageChannel = threads.MessageChannel;
exports.Worker = threads.Worker;
exports.moveMessagePortToContext = threads.moveMessagePortToContext || null;
exports.receiveMessageOnPort = threads.receiveMessageOnPort || null;
exports.SHARE_ENV = threads.SHARE_ENV || null;
exports.importScripts = null;

Expand Down

0 comments on commit adcc5c4

Please sign in to comment.