developit / developit/workerize
Consider removing expose(), call() and kill() ?
オープン
enhancement
help wanted
- 主要言語
- JavaScript
- スター
- 4.4k
- フォーク
- 87
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
``` javascript
worker.expose = methodName => {
worker[i] = function() {
return worker.call(methodName, [].slice.call(arguments));
};
};
```
Instead `methodName` parameter should be used:
``` javascript
worker.expose = methodName => {
worker[methodName] = function() {
return worker.call(methodName, [].slice.call(arguments));
};
};
```
Beside that I don't see why the `call` and `expose` methods are accessible from outside. (Don't assign to worker at all)
The purpose of the `kill` method is also not clear for me.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。