browserify / browserify/node-util

circular reference cause `inherits()` became empty object

オープン
#80 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
255
フォーク
92
PR マージ指標
30日以内にマージされた PR はありません

説明

the line below refs to `inherits()` from `inherits` module, but `inherits` module reference back to `util` module by checking the implementation on `util` module first, causing the first `require('inherits')` to returns empty object (default exports is empty object), if then `util.inherits()` gets call immediately it will throw.

problematic line in question:
https://github.com/browserify/node-util/blame/ef984721db7150f651800e051de4314c9517d42c/util.js#L592

the line needs to be updated to `require('inherits/inherits_browser')`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。