Skip to content

Accessors should work for all properties and not be executed too eagerly #152

Description

@LeaVerou

E.g. this should work:

{
	get arg() { return someExpression1() },
	get expect () { return someExpression2() }
}

Today, they would (probably) work, but they'd be executed in the Test constructor and not in TestResult.run(), which is incorrect.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions