Bug 451527 - Add a strong type convention for Mingw build, r=bz, sr=jst

This commit is contained in:
Bo Yang 2008-09-04 22:20:35 +02:00
parent 4f5890e60b
commit 129dd4df5a

View File

@ -563,7 +563,9 @@ nsDOMWorkerThread::CompileGlobalObject(JSContext* aCx)
JSPROP_ENUMERATE);
NS_ENSURE_TRUE(success, PR_FALSE);
JSScript* script = JS_CompileUCScript(aCx, global, mSource.BeginReading(),
JSScript* script = JS_CompileUCScript(aCx, global,
reinterpret_cast<const jschar*>
(mSource.BeginReading()),
mSource.Length(), nsnull, 1);
NS_ENSURE_TRUE(script, PR_FALSE);