Skip to content

global behavior if commonjs not available #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
language: node_js
node_js:
- "iojs"
- "iojs-v2"
- "iojs-v1"
- "0.12"
- "0.10"
- "7"
sudo: false
4 changes: 3 additions & 1 deletion lib/stacktrace-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ var StackTraceParser = {
};


module.exports = StackTraceParser;
if (typeof module != 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that is enough? The main entry point of the project is the index.js which also uses module.exports to require that stuff.

module.exports = StackTraceParser;
}