summaryrefslogtreecommitdiff
path: root/js/src/jsstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsstr.h')
-rw-r--r--js/src/jsstr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jsstr.h b/js/src/jsstr.h
index b9ae3b8d2..afeba7c04 100644
--- a/js/src/jsstr.h
+++ b/js/src/jsstr.h
@@ -10,6 +10,7 @@
#include "mozilla/HashFunctions.h"
#include "mozilla/PodOperations.h"
#include "mozilla/UniquePtr.h"
+#include "mozilla/TextUtils.h"
#include "jsutil.h"
#include "NamespaceImports.h"
@@ -95,7 +96,7 @@ struct JSSubString {
#define JS7_UNOCT(c) (JS7_UNDEC(c))
#define JS7_ISHEX(c) ((c) < 128 && isxdigit(c))
#define JS7_UNHEX(c) (unsigned)(JS7_ISDEC(c) ? (c) - '0' : 10 + tolower(c) - 'a')
-#define JS7_ISLET(c) ((c) < 128 && isalpha(c))
+#define JS7_ISLET(c) (mozilla::IsAsciiAlpha(c))
/* Initialize the String class, returning its prototype object. */
extern JSObject*