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:
vidur%netscape.com
1999-08-19 20:36:31 +00:00
parent d70dfd8146
commit 29bf6d365c
10 changed files with 87 additions and 44 deletions

View File

@@ -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;