From f5d7b947e6a9ee4479ec187c51f819a8796da209 Mon Sep 17 00:00:00 2001 From: "bclary%bclary.com" Date: Mon, 26 Mar 2007 21:13:57 +0000 Subject: [PATCH] Bug 370490 - Build SpiderMonkey with JS_C_STRINGS_ARE_UTF8, not part of the build, patch by Tom Insam, r=brendan --- js/src/jsopcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsopcode.c b/js/src/jsopcode.c index 1baf867d7ec..cb9858ad3c8 100644 --- a/js/src/jsopcode.c +++ b/js/src/jsopcode.c @@ -529,7 +529,7 @@ QuoteString(Sprinter *sp, JSString *str, uint32 quote) if (t == z) { char numbuf[10]; JS_snprintf(numbuf, sizeof numbuf, "0x%x", c); - JS_ReportErrorFlagsAndNumber(cx, JSREPORT_ERROR, + JS_ReportErrorFlagsAndNumber(sp->context, JSREPORT_ERROR, js_GetErrorMessage, NULL, JSMSG_BAD_SURROGATE_CHAR, numbuf);