Added emptyArgs, removed unused return value in readEvalFile

git-svn-id: svn://10.0.0.236/trunk@73169 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2000-06-24 05:42:51 +00:00
parent b4ef9b75fb
commit 3d0c7e4a46
2 changed files with 4 additions and 2 deletions

View File

@@ -148,6 +148,7 @@ static void readEvalFile(FILE* in, const String& fileName)
String buffer;
string line;
LineReader inReader(in);
JSValues emptyArgs;
while (inReader.readLine(line) != 0) {
appendChars(buffer, line.data(), line.size());
@@ -172,7 +173,7 @@ static void readEvalFile(FILE* in, const String& fileName)
// list of zero or more statements
ICodeModule* icm = genCode(cx, parsedStatements, fileName);
if (icm) {
JSValue result = cx.interpret(icm, JSValues());
cx.interpret(icm, emptyArgs);
delete icm;
}