Skip to content
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

Normative: Make Async-from-Sync iterator object inaccessible to ECMAScript code #1474

Merged
merged 1 commit into from
Jun 19, 2019

Commits on Jun 19, 2019

  1. Normative: Make Async-from-Sync iterator object inaccessible to ECMAS…

    …cript code
    
    Fixes tc39#1172
    
    Add assertions and note that Async-from-Sync iterator instances are not directly accessible
    
    - Replace type checks with assertions in "next", "return", and "throw" methods.
    - Remove `@@toStringTag` because it's never accessed.
    - Add note Async-from-Sync Iterator instances cannot be accessed from ECMAScript code.
    
    Drive-by:
    - Change "`value` field" to "`value` property".
    - Change "async iterator value unwrap function" to "async-from-sync iterator value unwrap function".
    
    Fixes tc39/proposal-async-iteration#105
    anba authored and ljharb committed Jun 19, 2019
    Configuration menu
    Copy the full SHA
    1245393 View commit details
    Browse the repository at this point in the history