Commit 34c202a0 authored by mike's avatar mike Committed by Commit bot

Correct in-line comment

Commit c86f1897 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}
parent b2fd2ded
......@@ -2725,7 +2725,7 @@ Statement* Parser::ParseReturnStatement(bool* ok) {
Expression* is_spec_object_call = factory()->NewCallRuntime(
Runtime::kInlineIsJSReceiver, is_spec_object_args, pos);
// %_IsJSReceiver(temp) ? temp : throw_expression
// %_IsJSReceiver(temp) ? temp : 1;
Expression* is_object_conditional = factory()->NewConditional(
is_spec_object_call, factory()->NewVariableProxy(temp),
factory()->NewSmiLiteral(1, pos), pos);
......
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