Never compile a redirecting factory (issue 6697).
Review URL: https://codereview.chromium.org//11377164 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14905 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -536,7 +536,9 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) {
|
||||
for (int i = 0; i < functions.Length(); i++) {
|
||||
func ^= functions.At(i);
|
||||
ASSERT(!func.IsNull());
|
||||
if (!func.HasCode() && !func.is_abstract()) {
|
||||
if (!func.HasCode() &&
|
||||
!func.is_abstract() &&
|
||||
!func.IsRedirectingFactory()) {
|
||||
error = CompileFunction(func);
|
||||
if (!error.IsNull()) {
|
||||
return error.raw();
|
||||
|
||||
Reference in New Issue
Block a user