Changed method signature of EvaluateScript to return nsresult. Added nsJSThreadContextStack pushing and popping around script evaluation.
git-svn-id: svn://10.0.0.236/trunk@43669 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -884,11 +884,11 @@ void JSConsole::EvaluateText(UINT aStartSel, UINT aEndSel)
|
||||
nsAutoString returnValue;
|
||||
PRBool isUndefined;
|
||||
|
||||
if (mContext->EvaluateString(nsString(cleanBuffer),
|
||||
if (NS_SUCCEEDED(mContext->EvaluateString(nsString(cleanBuffer),
|
||||
nsnull,
|
||||
0,
|
||||
returnValue,
|
||||
&isUndefined)) {
|
||||
&isUndefined))) {
|
||||
// output the result on the console and on the edit area
|
||||
CHAR result[128];
|
||||
LPSTR res = result;
|
||||
|
||||
Reference in New Issue
Block a user