Commit 2c51ca8f authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] for-in only enumerates Strings.

Update type of JSForInNext to say String\/Undefined.

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2660543003
Cr-Commit-Position: refs/heads/master@{#42768}
parent b9128516
......@@ -1641,7 +1641,7 @@ Type* Typer::Visitor::TypeJSConvertReceiver(Node* node) {
Type* Typer::Visitor::TypeJSForInNext(Node* node) {
return Type::Union(Type::Name(), Type::Undefined(), zone());
return Type::Union(Type::String(), Type::Undefined(), zone());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment