Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Better check for node.js context #33

Merged
merged 1 commit into from
Jul 29, 2015
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
2 changes: 1 addition & 1 deletion ClosureCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
(function(global) {

if ((typeof window != 'undefined' && !!window.window) || typeof require != 'function') {
if (typeof require != 'function' || !module || !module.exports || !process) {
throw(new Error("ClosureCompiler.js can only be used within node.js"));
}

Expand Down