Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Replaced usage of [] with `charAt` for IE7<=

Guillermo Rauch4409746a6c9e
diff --git a/support/compile.js b/support/compile.js
index 66161311..aaa9f4d4 100644
--- a/support/compile.js
+++ b/support/compile.js
@@ -126,7 +126,7 @@ var browser = {
relative: function(parent) {
return function(p){
- if ('.' != p[0]) return require(p);
+ if ('.' != p.charAt(0)) return require(p);
var path = parent.split('/')
, segs = p.split('/');
@@ -149,4 +149,4 @@ var browser = {
register: function(path, fn){
require.modules[path] = fn;
}
-};
\ No newline at end of file
+};