-
Notifications
You must be signed in to change notification settings - Fork 684
Minor fix in for-of statement parsing #4814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fix in for-of statement parsing #4814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add regression test for it?
Test suggestion: |
52a3033
to
26cc272
Compare
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
26cc272
to
715f7e8
Compare
Ohh, yes, I've forgotten to add a test case, thanks for your suggestions, I've updated it accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
for (a of [1] || [2]) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure a new test is needed, we can add this to the for-of test. But it does not hurt eaither, so it is up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
for (a of [1] || [2]) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it.
No description provided.