Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Use method scope semantics for initializers #43

Merged
merged 1 commit into from
Aug 9, 2016

Conversation

littledan
Copy link
Member

This patch regularizes initializer scopes to make them just
like a method, as discussed at the July 2016 TC39 meeting.

Effects of this patch:

  • new.target becomes undefined
  • arguments becomes an empty arguments object

@ljharb
Copy link
Member

ljharb commented Jul 28, 2016

I don't think this actually gained consensus though - there's still some disagreement

This patch regularizes initializer scopes to make them just
like a method, as discussed at the July 2016 TC39 meeting.

Effects of this patch:
- new.target becomes undefined
- arguments becomes an empty arguments object
@jeffmo
Copy link
Member

jeffmo commented Aug 9, 2016

Ok, going to merge this since it's what we landed on at the meeting -- but I will be sure the discussion over in #34 is addressed before we try to advance to Stage 3.

@jeffmo jeffmo merged commit 64faf8b into tc39:master Aug 9, 2016
@ljharb
Copy link
Member

ljharb commented Aug 9, 2016

@jeffmo I wasn't aware this (arguments/new.target in initializers) had achieved consensus at the last meeting, so let's please plan to discuss it at the next one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants