From 6b8a50fc84ff7ca9525786066e40a0afd7f5aa40 Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Mon, 12 Sep 2011 13:34:40 -0700 Subject: [PATCH] Avoid JS assertion failure on wake from sleep runtime -- it can only ever be set once, so we were hitting an assertion failure when waking from sleep and re-initializing. Change-Id: I3fe586e307a5b7e5c8fedcd840182215b51da2cb --- src/js/src/js-config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/src/js-config.h b/src/js/src/js-config.h index 6d8f4f0..993b8a1 100644 --- a/src/js/src/js-config.h +++ b/src/js/src/js-config.h @@ -52,6 +52,9 @@ entirely too much GC. */ #undef JS_GC_ZEAL +// Strings are considered UTF-8 (added for iMonkey) +#define JS_C_STRINGS_ARE_UTF8 + /* Define to 1 if the standard header is present and useable. See jstypes.h and jsstdint.h. */ #define JS_HAVE_STDINT_H