Fixing mac debug bustage. Patch suggested by jst, sr=jst.

This commit is contained in:
peterv%netscape.com 2001-11-16 10:50:33 +00:00
Родитель e7292bc505
Коммит 35a301d30e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -157,10 +157,10 @@ CheckJSFunctionCallerAccess(JSContext *cx, JSObject *obj, jsval id,
{
// Currently, this function will be called only when function.caller
// is accessed. If that changes, we will need to change this function.
NS_ASSERTION(nsCRT::strcmp(JS_GetStringChars(JSVAL_TO_STRING(id)),
NS_ASSERTION(nsCRT::strcmp(NS_REINTERPRET_CAST(PRUnichar*,
JS_GetStringChars(JSVAL_TO_STRING(id))),
NS_LITERAL_STRING("caller").get()) == 0,
"CheckJSFunctionCallerAccess called for a property other than \'caller\'");
// Get the security manager
//XXX: Any way to avoid this service lookup?
nsresult rv;