зеркало из https://github.com/mozilla/gecko-dev.git
Fix for empty function body
This commit is contained in:
Родитель
8c105459ae
Коммит
7383f26d6a
|
@ -1670,6 +1670,7 @@ ICodeModule *ICodeGenerator::genFunction(FunctionStmtNode *f, bool isConstructor
|
|||
const StringAtom &initName = mWorld->identifiers["__init__"]; // XXXXXXX
|
||||
icg.call(icg.getStatic(mClass, initName), thisValue, &args); // ok, so it's mis-named
|
||||
}
|
||||
if (f->function.body)
|
||||
icg.genStmt(f->function.body);
|
||||
if (isConstructor) {
|
||||
TypedRegister thisValue = TypedRegister(0, mClass);
|
||||
|
|
|
@ -1670,6 +1670,7 @@ ICodeModule *ICodeGenerator::genFunction(FunctionStmtNode *f, bool isConstructor
|
|||
const StringAtom &initName = mWorld->identifiers["__init__"]; // XXXXXXX
|
||||
icg.call(icg.getStatic(mClass, initName), thisValue, &args); // ok, so it's mis-named
|
||||
}
|
||||
if (f->function.body)
|
||||
icg.genStmt(f->function.body);
|
||||
if (isConstructor) {
|
||||
TypedRegister thisValue = TypedRegister(0, mClass);
|
||||
|
|
Загрузка…
Ссылка в новой задаче