Skip to content

Implement for..in for objects #670

Closed

Description

@jcdickinson

ECMASCript feature
I would like to see for..in syntax and execution implemented. ECMAScript specification. This is important for test262, as it uses for..in pretty extensively.

Example code

const myObject = {
 a: 'test1',
 b: 'test2'
};
let c = '';
for(const prop in myObject) {
 c += prop + '=' + myObject[prop] + ';';
}
c

The expected output is a=test1;b=test2;.

Activity

  1. added
    A-Enhancement
    on Aug 31, 2020
  2. added this to the v0.11.0 milestone on Sep 18, 2020
  3. added
    E-Medium
    Hacktoberfest
    on Sep 28, 2020
  4. tofpie commented on Dec 15, 2020

    @tofpie
    Contributor

    Hi. Could I work on it?

  5. jcdickinson commented on Dec 16, 2020

    @jcdickinson
    ContributorAuthor

    Hi. Could I work on it?

    I have no objection. You might want to take a look at my closed PR to see if it applies to the subsequent changes.

    If you have a WIP feel free to @ me, I'm somewhat familiar with the architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-EnhancementE-MediumHacktoberfest

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions