Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Don't expect encoding-indexes to return object with indexes & don't require them if they are already present #61

Merged
merged 2 commits into from
Oct 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* @fileoverview Global |this| required for resolving indexes in node.
* @suppress {globalThis}
*/
if (typeof module !== "undefined" && module.exports) {
this["encoding-indexes"] =
require("./encoding-indexes.js")["encoding-indexes"];
if (typeof module !== "undefined" && module.exports &&
!this["encoding-indexes"]) {
require("./encoding-indexes.js");
}

(function(global) {
Expand Down