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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user