We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dee06e commit e060a37Copy full SHA for e060a37
astar.js
@@ -6,7 +6,7 @@
6
// http://eloquentjavascript.net/appendix2.html
7
8
(function(definition) {
9
- if(typeof module.exports === 'object') {
+ if(typeof module === 'object' && typeof module.exports === 'object') {
10
module.exports = definition();
11
} else if(typeof define === 'function' && define.amd) {
12
define([], definition);
0 commit comments