| Index: src/compiler/typer.cc
|
| diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
|
| index 91bcf5147063175f891595e0007a7813cc2f4039..7c4b94e363203462a3a302bc2755a22353758799 100644
|
| --- a/src/compiler/typer.cc
|
| +++ b/src/compiler/typer.cc
|
| @@ -1161,6 +1161,8 @@ Type* Typer::Visitor::JSTypeOfTyper(Type* type, Typer* t) {
|
| return Type::Constant(f->undefined_string(), t->zone());
|
| } else if (type->Is(Type::Null())) {
|
| return Type::Constant(f->object_string(), t->zone());
|
| + } else if (type->Is(Type::Function())) {
|
| + return Type::Constant(f->function_string(), t->zone());
|
| } else if (type->IsConstant()) {
|
| return Type::Constant(
|
| Object::TypeOf(t->isolate(), type->AsConstant()->Value()), t->zone());
|
|
|