Correct in-line comment

Commit c86f189 corrected the way context from which a specific error is
thrown, but the in-line comment was not updated to reflect this.

Update the comment to accurately describe the intended behavior.

LOG=N
R=littledan@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/1999483002
Cr-Commit-Position: refs/heads/master@{#36541}
This commit is contained in:
mike 2016-05-27 02:53:36 -07:00 committed by Commit bot
parent b2fd2ded16
commit 34c202a0c1

View File

@ -2725,7 +2725,7 @@ Statement* Parser::ParseReturnStatement(bool* ok) {
Expression* is_spec_object_call = factory()->NewCallRuntime( Expression* is_spec_object_call = factory()->NewCallRuntime(
Runtime::kInlineIsJSReceiver, is_spec_object_args, pos); Runtime::kInlineIsJSReceiver, is_spec_object_args, pos);
// %_IsJSReceiver(temp) ? temp : throw_expression // %_IsJSReceiver(temp) ? temp : 1;
Expression* is_object_conditional = factory()->NewConditional( Expression* is_object_conditional = factory()->NewConditional(
is_spec_object_call, factory()->NewVariableProxy(temp), is_spec_object_call, factory()->NewVariableProxy(temp),
factory()->NewSmiLiteral(1, pos), pos); factory()->NewSmiLiteral(1, pos), pos);