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:
parent
b2fd2ded16
commit
34c202a0c1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user