- AMD
- Accessibility
- Updated tooltip ajax PR
- Scott to do a final code review
- Button
- Rewrite is mostly done.
- Alex to start on checkbox/radio.
- Tabs
- Fixed non-utf-8 URLs.
- Dialog
- Jörn and Scott fixed most of the failing tests.
- Selectmenu
- Prototype for native menu has lots of a11y issues.
- Ticket triage
- 1 pending ticket +0
- 391 tickets total +1
- 42 pull requests -2
Author Archives: builder
Ecma/TC39 Meeting – Nov 20 2013
link Nov 20 Meeting Notes
John Neumann (JN), Allen Wirfs-Brock (AWB), Yehuda Katz (YK), Eric Ferraiuolo (EF), Erik Arvidsson (EA), Rick Hudson (RH), Matt Sweeney (MS), Rick Waldron (RW), Dmitry Soshnikov (DS), Sebastian Markbage (SM), Ben Newman (BN), Reid Burke (RB), Waldemar Horwat (WH), Doug Crockford (DC), Tom Van Custem (TVC), Mark Miller (MM), Brian Terlson (BT), Andreas Rossberg (ARB), Alex Russell (AR)
link Report from the Ecma Secretariat (CC Report)
(Istvan Sebestyen)
link Status of the TC39 RFTG
January 2014 Meeting deadline
link 4.2 Clarification of the interaction of unicode escapes and identification syntax
(Waldemar Horwat)
WH: In ES3 we added the ability to use unicode escape sequences in Identifiers, ie.
|
1
|
|
The restriction was that the unicode escape sequence still had to be a valid identifier. ES3 and ES5 never allowed unicode escapes to substitute non-user-data characters of other tokens such as reserved words or punctuation.
the contention is that ES6 has an incompatible lexical grammar change that lets you write things like:
|
1
2
3
4
5
6
7
8
9
10
|
|
AWB: Things that came up in ES5:
- can you declare a variable that has the same unicode escape sequence as a keyword?
|
1
|
|
- introduced in ES5:
|
1
2
|
|
ie. Identifier vs IdentifierName
WH: Cannot use escapes to create identifiers that would be invalid. Also opposed to allowing escapes inside keywords; there should be just one spelling of the keyword if, and it should not include \u0069f.
So what should we do about \u0069f(x===15) ? It depends on how we interpret the ES3/ES5 rule that states that escapes cannot be used to create identifiernames that don't conform to the identifiername grammar.
Option A: Treat the if there as an identifier because there are some contexts in which "if" can be used as an identifier (notably after a dot), making this into a function call.
Option B: The if there cannot be an identifier in this context, so it's a syntax error because we're trying to spell a reserved word with an escape.
AWB: Agree there is ambiguity
MM: https://code.google.com/p/google-caja/wiki/SecurityAdvisory20131121 "Handling of unicode escapes in identifiers can lead to security issues" Records the vulnerability that has now been fixed in Caja at the price of additional pre-processing. This vulnerability which was caused by ambiguity in interpretations of the ES5 spec by different browser makers.
STH: If there are systems that need to search code for specific forms
MM: It would be harmful to code that looked at keywords, then this could circumvent those assumptions.
AWB/WH: (recapping acceptable use of reserved words as identifiernames)
BE: We can fix it, but it's just not how ES6 spec works
WH: If it is a ReservedWord, it may not be spelled with an escape.
MM: This solves Sam's static code case
BE: No escape processing upstream?
WH: (agreeing)
AWB: We can specify in the grammar that where we write "if" it means that exact character sequence
...Anywhere we express literal keywords, we mean those character sequences.
link Consensus/Resolution
- ReservedWords, including contextual, can only be spelled with ascii characters, ie. the literal character sequence.
- No escapes allowed in such ReservedWords
link Performance impact of Tail Calls
(Brian Terlson)
BT: Wondering if any implementors have begun work on these? Are there considerations for existing code that will become tail call?
YK/AWB: Any examples?
BT: Stack frame manipulation
BE: It's not a zero work to new work, it's an old work to different work.
STH: There's a lot of work on this subject, presumably tail calls should be able to run as fast as it does currently. No advice that's implementation independent.
ARB: Standard techniques should be applicable. Foresee a lot of work.
YK: The only real value for practioners is for compile-to-js cases.
DC: This is actually the most exciting feature for me, because it allows
BE: Will have someone work on this for SpiderMonkey
RW: Agree that implementors will feel the pressure once practioners experience the benefits that Doug describes.
DH: Allows for real cps transformations that won't blow the stack and don't require awful setTimeout hacks. FP idioms being available to JS.
link Consensus/Resolution
- Share implementation experience
link super and object literals
(Allen Wirfs-Brock)
(needs slides)
AWB: Issue: how do you mixin some methods that reference super?
|
1
|
|
In the process of mixing, Object.mixin will rebind super references to the target. The big problem: super is currently explicitly illegal within an object literal:
|
1
2
3
4
5
|
|
BE: are we asking to allow super anywhere?
MM: We're not adding a restriction?
AWB: No, removing.
MM: Strictly a simplification.
Discussion re: Object.mixin
WH: Curious about the design of exposing super to user code, but only via the Object.mixin API. If we're going to be storing and retrieving super from a hidden slot, this seems a very roundabout API that's going to bite us.
AWB: Allow super in concise methods
EA: All object literals?
RW: No, because the property value could be defined elsewhere. Ensure invalid in function and it's ok
EA/AWB/RW: Allow super in concise methods within object literals.
Clarification of Object.mixin capabilities.
MM: (has issue with the naming)
AWB: Let's defer discussion of naming.
YK: We should allow super in function expressions within object literals
MM: Refactoring hazard
DH: There is always a refactoring hazard when scope is involved (super)
RW: On board with Erik and Yehuda, super should be allowed in both concise methods and function expression literals that are the value of properties defined in an object literal.
DH: Object.mixin creates a new function when rebound?
AWB: Yes.
MM: (whiteboard)
|
1
2
3
4
5
6
7
8
9
|
|
DS: Concern about having a reference to a function object that doesn't equal the rebound method
|
1
2
3
4
5
6
7
|
|
BE: No way to define a property on a concise method declaratively.
WH: RebindSuper doesn't copy expandos (referring to Allen's claim that it does) http://people.mozilla.org/~jorendorff/es6-draft.html#sec-rebindsuper (The actual copying of expandos takes place in MixinProperties http://people.mozilla.org/~jorendorff/es6-draft.html#sec-mixinproperties
DH: Issue: bind does a similar operation, but doesn't copy expandos. ... Any other deep traversals? If you have a non-callable object, it only does a shallow copy? ... The existance of super creates an inconsistency.
AWB: Alternatives are always clone or never.
DS: All methods should be copied to avoid the distinction
YK: Don't copy exandos?
EA: Happy to go back to Object.defineMethod
YK: Still need to decide if it copies expandos
DH: That's the smallest operation that you can build on
WH: Object.mixin breaks membranes, no way to intercept the super rebinding when the method is a proxy.
AWB: There are many operations like this
EA: No different from Function.prototype.bind
MM: What happens when the method is a Proxy?
AWB: A proxy for a method is not a function.
MM: A Proxy whose target is a function?
AWB: It's not an ordinary ECMAScript function
MM: Anything we do, we should ask "What does it do across membranes?" There are two criteria that often come into conflict:
- Security
- Transparency
Discussion about Security vs. Transparency
EA: What happens when do bind on a function proxy?
MM: fail?
DH: This is shocking.
MM: bind is a perfect example, there is no conflict between security and transparency. You'd like bind to work on proxy functions
EA: (whiteboard)
|
1
|
|
MM: They're saying, do the [[get]] on the proxy, you don't get bindSuper back, you get a proxy for bindSuper ... membrane safe.
YK: Change bind?
DH: Can't change bind, varargs
Mixed discussion re: home binding.
AWB: Expose the home binding via trap?
DH: trap makes sense to me
MM: From the method you have access to the home binding?
AWB: yes
MM: Don't like that
AWB: Another way
WH: The method calls "super" and expects to reach it's super
AWB: There could be a super call trap
YK: Any objects to bindSuper?
DH: No idea what this means.
BN: What is the material difference between defineMethod and bindSuper?
bindSuper: like bind, but only changes super. Could be defined in terms of Object.defineMethod:
|
1
2
3
4
|
|
changing this and super is a two step change:
|
1
2
3
4
5
6
7
8
|
|
DH: bindSuper is the max/min of define
- takes one target argument
- copies code and changes super references to target
on a bound function?
BE: On a function with this and super, changing both will create two new functions
AWB: This is a "clone function"
DH: Meaning, only clone the this-binding, not the expandos
...
AWB: you'll need to bindSuper, then bind
AWB: If you want it to work in either direction
WH: binding super after binding this will cause problems. That would be an anti-feature that breaks abstraction. A lot of times, code will return a bound function specifically to prevent you from changing this. Changing super in such a function would break the abstraction.
?: Want bind and bindSuper to commute
WH: Don't want them to commute. They're fundamentally different. bind can only be done once and freezes the this binding. bindSuper can be done repeatedly and doesn't freeze the super binding.
?: You can already rebind this in a bound function
MM: No. If you bind it again, it doesn't mutate the bound this value; the second one is ignored.
DH: (whiteboard)
- mixin -> defer, focus on primitive
- defineMethod -> not proxyable
- bindSuper -> good
- proxying -> good
- composition with bind bind().bindSuper() -> ERROR. bindSuper().bind() -> OK.
bindSuper can be called on the result of bindSuper (which is why YK/MM dislike the use of "bind")
Alternative names: resuper, bindSuper, supersede, withSuper, super?
withSuper, bindSuper?
bindSuper(obj[, ...])
BN: what does super.valueOf() return?
DH: should be this, similar to what super evaluates to in Smalltalk (according to AWB)
- static error vs dynamic error? DYNAMIC.
- where is super given a binding (other then class)?
- class methods
- method shorthand
- in obj literal wherever name inferrable
Discussion re: naming. The shed is pink? It's more of a mauve, I think. You would.
link Consensus/Resolution
- Remove Object.mixin
- "toMethod()" wins -- debate about argument order
- debate about what [[MName]] is and what it's derived from
- super delegation uses [[Name]]
- there's a prototype property for name as well
- and functions with names have an own property that's .name, while function.prototype has a .name that's a null string
- .name is configurable, non-writeable, but not necessarialy an own property -- depends on how the function was defined
- clarification that ".name" has no effect on [[Name]]
- clarification that ".name" has no semantic effect on other methods that might consume a name
- copied: length
- result name: whatever we decided [[mname]] was
- bound functions cannot be converted to methods
- bind().toMethod() -> throws
Function.prototype.toMethod(home[, mname])
Dave, please review the details above.
link Reconsidering the Map custom comparator API
(Dave Herman)
DH: Something incredibly gross about having an API that allows exactly one string, but I know we need to solve the bigger problem which is being able to provide performant custom comparators.
Can we just get rid of this argument?
WH: [Recaps consensus decision from prior meeting and the reasoning route by which we arrived at it.]
MM: (gives memoization example)
DH: This can be addressed in ES7
Discussion re: -0/+0 difference.
It was pointed out the only difference between the default comparator and the is comparation is the handling of -0/+0 and that a subclass of Map that ditingishes between +0 and -1 using Object.is can easily be written in ES code.
link Consensus/Resolution
- Remove second param to Map and Set constructor
- Defer to ES7
link Math.hypot() and precision
(Dave Herman)
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot
DH: Oliver Hunt brought this up, do we want to maximize precision (by sorting) and take the performance hit? Or do them in the provided order. Prefer the latter. Oliver prefererred sorting for precision but taking the performance hit.
BE/DH: He's not here.
Referring to IEEE 754
Luke provided the original spec text, but it's changed since then.
BE: need to look at SpiderMonkey implementation and possibly provide new spec text.
WH: Sorting doesn't matter much in this case; it's a second-order effect. Cancellation is impossible because all squares being added are nonnegative.
WH: What does greatly matter is not overflowing for values > sqrt(largest finite double). What does hypot(1e200, 1e210) do? BE (runs it on bleeding edge Firefox): About 1e210 WH: Good. We do want to avoid the intermediate overflow that would turn this into +?.
[ more discussion ]
?: This isn't just about hypot. How should we specify precision in general for things such as transcendental function.
WH: It's a moving target. Do not want to encode precision requirements in the standard on anything other than basic arithmetic or number?string conversion in the spec because those are complicated and how to specify them varies depending on the function. Best thing to do is link to some existing writeup describing best practices.
BE: I'll beat the drum to get a spec. Dave's right that it's bad language.
link Consensus/Resolution
- Brendan to propose replacement for last two steps.
link 4.10 Generator arrow function syntax
(Brendan Eich)
BE: This isn't a big deal and should be easy to bring into ES6. Experience so far has been that people love arrow functions and generators and want a generator arrow
(whiteboard)
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
|
WH: Don't like => because it swaps the order from function.
WH: The ! problem in =>* can be solved by using % or ? instead of !. Would prefer those characters anyway.
BN: Another (strawman) possibility is the presense of yield.
BE/WH: No
DH: Recalls implied generator (yield presense) footgun
DH: There is not a 1-to-1 correspondance to where you'd use function or function *. Arrow is not a replacement for all functions that want lexical this.
link Consensus/Resolution
- No addition, revisit for ES7
link for-let
(Brian Terlson)
BT: We've shipped for-let without fresh bindings per iteration (according to the current spec) but we're ok with updating.
MM: Consensus?
RW: recalling the consensus from yahoo 2012
DH: Need consensus on the semantics of capturing in the expression positions
DH: if there's something that "closes over" that variable, what's that referring to? I remember that thead, but I don't reacall the otucome
AWB: no definitive outcome... no satisfactory solutions
DH: we have this job on this committee... ;-)
BT: that we shipped in IE has no weighting on this?
AWB: nope. Should have looked at the spec which has notes to this effect
(discussion about binding per iteration)
AWB: C# addresses this by saying "this is insane, so for C-style of or, we have per-iteration bindings, not per-loop bindings"
MM: so let in the head of the loop creates only one location?
(yes)
EA: if we don't resolve this today, we sould fallback to what IE 11 does.
DH: sure, but we have to go through this thread
AWB: The first time you initialize, create an extra scope contour, the zeroth iteration. This is where the capture occurs and the subsequent iterations propagate to that scope.
AWB: if you order these things right, the 3rd part happens at the end, but before your propagate
MM: you mutate and then the value gets copied... seems fine
|
1
2
3
4
5
6
7
|
|
|
1
2
|
|
This is an infinite loop. Reasoning: 1) The outer scope receives its initial value for i and f. Critically, f's i now binds to this outer binding. 2) The outer scope forwards these values into the first iteration of the loop 3) In the beginning of the 1st loop iteration, the test is executed. At this point, i is still zero. 4) After, still on the first iteration, the test for i < 1 fails because i is zero. 5) Since we never modify the loop variable, this must be an infinite loop.
BE: FWIW, Dart has the same semantics.
|
1
2
3
4
5
6
7
8
9
10
|
|
outputs
|
1
2
3
4
5
6
|
|
link Consensus/Resolution
- Brand new outer scope created around the entire loop that has variables that are declared in the loop head, and it gets the initial values
- There is a new scope for each iteration that receives values from the previous iteration
link 5 Post ES6 Spec Process.
(Rafael Weinstein)
Train model.
link Consensus/Resolution
- Sounds reasonable, we're going to try it.
link Ordering of scheduling of microtasks
BE: FIFO
AWB: In the ES6 we need to say something.
?: Examples of why browsers want to use priority queues to schedule tasks
[ Debate about whether in ES6 we need to mention the priority queues ]
?: DOM and other tasks are beyond the scope of the standard. Just say that ES6 tasks are in FIFO.
WH: Would prefer to mention a richer priority structure in the spec; otherwise other groups (W3C) will want to fit their tasks into our FIFO, which is not desirable. At the very least we must say that other tasks with visible effects may get arbitrarily interleaved between the ES6 tasks we talk about in the spec, so don't assume that nothing can come between adjacent ES6 tasks in the FIFO.
MM: Rafael and I went throught the existing DOM behavior...
YK: Disagrees with Rafael. Bucketing. Series of buckets. The first bucket is the cheapest operations and the last bucket is the most expensive bucket. If a bucket adds something to an earlier bucket then you go back to to earliest bucket that has items in it. Each bucket is a FIFO queue.
WH: Can you reorder the operations so that the DOM operation happens next to each other.
YK: I think a priority queue is isomorphic to buckets.
AWB: In ES6 we only have one class of priority which is the priority of Promises. We do not need to spec that there might be different priorities.
link Consensus/Resolution
- ES6 spec needs to spec that Promises are serviced in a FIFO queue
- Other non ES6 tasks might be interleaved arbitrarily
- Interleaving of the Promise queue by other non ES6 operations
Testing Team Meeting – Nov 20 2013
Ecma/TC39 Meeting – Nov 19 2013
link Nov 19 Meeting Notes
John Neumann (JN), Allen Wirfs-Brock (AWB), Yehuda Katz (YK), Eric Ferraiuolo (EF), Erik Arvidsson (EA), Rick Hudson (RH), Matt Sweeney (MS), Rafael Weinstein (RWS), Alex Russell (AR), Rick Waldron (RW), Dmitry Soshnikov (DS), Jeff Morrison (JM), Sebastian Markbage (SM), Ben Newman (BN), Reid Burke (RB), Waldemar Horwat (WH), Doug Crockford (DC), Tom Van Custem (TVC), Mark Miller (MM)
link Welcome
JN: (Introductions)
DC: (Logistics)
JN: ...updating status of RFTG ...Adopt agenda?
Unanimous approval
JN: Approval of Sept Minutes?
Unanimous approval
link ES6 Status
AWB: (presenting Luke's spreadsheet with remaining features that need attention) https://skydrive.live.com/view.aspx?resid=704A682DC00D8AAD!59602&app=Excel&authkey=!AAMixsO0TuyPYwc
...Function.prototype.toString still needs attention
BE: Mark is to write spec, in this case under-specify
AWB:
- Refutable pattern matching is deferred
- still need specification for enumerate / getOwnPropertyKeys/Symbols in various places
- Proxy handlers, cut
- C-style for-let
BE: We agreed on semantics
AWB: We agreed on outer capture, but won't try to update per iteration. Need per iteration binding.
YK: This is the consensus I recall
AWB:
- Modules, static semantics complete
- No loader/runtime semantics yet.
- Dave will have a complete spec this meeting
YK: (confirms that it's complete)
AWB: Yes, but not yet in the spec.
- Standard Modules deferred.
(TVC dials in)
link 4.4 Finalizing the Proxy API for ES6
(Presented by Tom Van Cutsem)
TVC: First three relate to es-discuss threads, re: simplifying Proxy. Jason Orendorff expressed concerns.
- hasOwn()
- invoke()
WH:
AWB: Looked for traps for call
BE: Total traps?
AWB: Now 14 traps.
BE: Cool. Not including hasOwn()?
AWB: Not including
TVC: The next is invoke() trap. Leave out for now to avoid inconsistencies with get()?
YK: How do you implement virtual objects? ie. an object whose this object is always the proxy. Can't do it reliably without invoke.
WH: Still not reliable, even with invoke.
YK: So what are the cases?
AWB: Can still implement a virtual object or full membrane, or thin wrapper.
YK: Not the use case. Want to make an object where this is the proxy and not the target.
TVC: Are you arguing that this should remain bound to the proxy object upon forwarding? If yes, this is the default.
YK: As long as maintaining equivalence between foo.bar() and bar.call(foo)
AWB: yes.
TVC: Regarding Handler API: not enough motivating use cases for proxy handlers without community use. Propose to defer.
AWB: Let's publish the library code TVC: It's already on github, as part of my shim. I will publish it as a separate project to make it more accessible.
TVC: Proxy as a constructor? Currently, no new throws TypeError
AWB: Not really a "class"
AR: You create new ones?
AWB: No prototype
AR: Gives an instance, why not "new"
AWB: Would need an @@create
YK: Then shouldn't be capitalized
BE: We can do "proxy"
AWB: (to Tom) the concern is: if it's not "new-able", should it be little-p proxy?
TVC: Given choice between little-p proxy and requiring new, I prefer new
RW: Agree with Alex, new Proxy() creates new Proxies, so allow new
AR: Let's not duck the charge on @@create.
WH: Proxy is not a class.
YK: ...But has allocation
WH: I would hate to specify what happens when subclassing from Proxy
AWB: Must create a special constructor
TVC: @@create doesn't make sense here
BE: Is Proxy a class?
(General: no)
TVC:
DS: What is typeof and instanceof
AWB/BE: object
BE: Capital P
AWB: Ca???
DS: Whatever Proxy creates?
BE: That depends on what is created.
DS: By default?
BE: typeof depends if there is a call trap. instanceof depends on the prototype chain. All in the spec, so can create any object (apart from private state issues)
AWB: Ok, into the future... would value objects allow new?
BE: (int64 example)
...back to why should new throw on Proxy constructor.
BE: Seems counter intuitive: Proxy constructs objects. int64 creates a value. callables construct objects
[ inaudible ]
BE: these are object constructor functions, which is what people want to do with "new"
AWB: this is somewhere in the middle between newing a class and a random function that returns an object
BE: in either case, it returns a new object and proxies are factories for object
AWB: yeah, I agree...spec currently calls them "proxy factory functions"
BE: pretty weird not to have "new" on this.. feels natural
YK: Intuitively, the difference between returning an object and not a value
AWB: we can do it...need to make it an exotic object with a special [[Construct]]
AR: agree. Making it exotic is good.
TVC: what's the summary?
AWB: we allow new, we do it by making it exotic.
EA: Do we REQUIRE "new"?
WH: what does Map do without new?
EA: Throws
BE: Why are we requiring new again?
RW: Needed for subclassing
AWB: my objection is that we're trying to tell a story about objects, classes, and @@create... this confuses the story
YK: there's already a weird split...saying you have to use new avoids the confusion
AR/RW: agree
AWB: we could go either way, and it's subtle, but most people won't see the subtlety
RW/BE: the conservative thing to do is to throw now and we can walk it back later
AWB: agree
JM: Removing the throw might change control flows?
BE: non-issue, rare.
link Consensus/Resolution
- Drop
hasOwn() - Drop
invoke() - Postpone proxy handlers API
- REQUIRE
new Proxyby making Proxy an exotic function that has it's own internal construct. (this is only "action" item)
link ES6 Status (cont)
AWB: - Symbols in place - Binary data deferred - RegExp look behind deferred
WH: No comprehensive specification of which variant of RegExp lookbehind was wanted. Followed up on es-discuss and got no good answer to questions.
AWB: No one has stepped up, deferred to ES7
- Completion reform has bugs, but that's just work for me
- Global scope, Dave has some possible changes he wants to discuss at this meeting
- Eval scope, now simplified because can't eval a module
- function scope, needs spec some design issues still open
- Promises, Domenic has a complete delta, just needs to be added
- Internal Method Invariants. If we're going to keep this section, someone needs to provide spec ready text.
MM: If Tom will collaborate with me on this, I will commit to producing this.
AWB: I can live without this section
MM: ES5 had that section, I will talk to Tom about creating this for ES6
...
AWB: For the end of this year, we need a feature complete spec. Essentially a "candidate spec". This means all the features there are sufficiently specified to allow an implementor to implement. I think we have a shot at it. There is work to do. Questions remain in modules, but Dave can update us. Dave and Jason (Orendorff) have been working like crazy to finish modules, including a reference implementation.
MM: The spec we want to be feature complete includes modules?
AWB: Yes.
MM: The loader stuff as well?
AWB: Yes. ... Over the next 6-9 months, we need implementors to work and provide feedback. We should push forward with what he have now (this includes modules)
link 4.1 Review Latest Specification Draft
(Allen Wirfs-Brock)
(request slides)
Discussion re: arguments.caller, arguments.callee in non-strict and strict mode.
Discussion re: default param aliasing
BE: (tries aliasing on SM)
YK: Issues with arguments.caller, arguments.callee in framework uses.
BE: Do we want three types of arguments?
YK: It's not really three types
...
link BE: Fair to say there are three observably different kinds of arguments
YK:
MM: Adopt some semantics where aliasing
BE: Deep aliasing of destructured parameters is bad
AR: Walk back poisoning entirely?
MM: No.
MM: Any simple parameter is aliased and any new style parameter is not ... on defaults I could go either way.
AWB: Back to scheduling
BE: If there is destructuring, no deep aliasing.
WH: Easier to explain if the rules are compositional.
link Consensus/Resolution
- Parameter issues
- default params, alias is independent
- destructuring has no name for top level object, no aliasing
- rest has no aliasing
- non-strict mode arguments have unpoisoned caller and callee
... Continue discussion re: do Arrow Functions have an arguments object?
link 4.3 Should 'arguments' in an arrow body be from nearest outer defining scope, or early error?
(Brendan Eich)
AWB: Arrows don't have an arguments object, but arguments is a keyword inside arrow functions.
WH: let arguments = ...?
not allowed, recapping ES5 strict rules that were applied to new forms in ES6.
questions about conditionally reserved words
AWB: what if the outer function does say let arguments = ...;, what is it in the arrow function?
MM: (whiteboard)
|
1
2
3
4
5
|
|
YK: this, super, arguments should refer to its outer.
WH: 11.6.2.2 and 13.2.1.1 are inconsistent. The former omits keywords such as "arguments", while claiming to be based on the latter.
link Consensus/Resolution
argumentsis lexically captured by arrow functions- 11.6.2.2 and 13.2.1.1 are inconsistent (file a bug)
- yield cannot mean "yield to the outer"
AWB/BE: yield just follows the rules for yield
MM: (whiteboard)
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
|
AWB: ...Computed property keys: No dynamic checking for duplicate computed property name in object literals or classes
|
1
2
3
4
5
|
|
MM: Cannot statically repeat properties in object literals
AWB: This isn't a static object literal
MM: ...
YK: The most common usage will by for symbols, eg. @@iterator
AWB: We don't have a mechanism for runtime checks like this and shouldn't be adding such checks
MM: The create and overwrite paths are very different (define v. assign)
WH: Pick one or the other. If we're going to do static checking, do it consistently. Either always check or never check
AWB: The complications I ran into were in gets and sets, it's not just "does this property exist"...
BE: We do want computed property gets and sets ...We should do checks.
AWB: It's not that non-strict doesn't check...
MM: given that we do dynamic checks in strict mode, you prefer NOT doing them in sloppy mode?
AWB: I don't like the dynamic checks either way
MM: that wasn't the question
AWB: the precedent in ES5 for object literals is that strict mode has "more" static checks.
AWB: "from a language design perspective", we should have them the same in both cases
BE: I'm w/ WH and ARB, we want the check in strict mode
AWB: so you don't want the check in sloppy mode?
BE: I don't think there is only one consistent position, and I'm ok with no dynamic check in non-strict mode
... discussion of the current static checks in non-strict mode ...
link Consensus/Resolution
- No change, this is the semantics:
|
1
2
3
4
5
|
|
AWB: the consensus is that for dynamically computed property names we will dynamically check the things we would have statically checked.
WH: Pop quiz. What does the following parse as?
|
1
2
3
4
5
6
7
8
9
10
11
|
|
[Almost nobody guessed all of these right.]
Current answer, with all optional semicolons inserted:
|
1
2
3
4
5
6
7
8
9
10
11
|
|
link Consensus/Resolution
- Update
yield * [Lexical goal InputElementRegexp]=>yield [no LineTerminator here] * [Lexical goal InputElementRegexp]
link Class/optional yield arg ambiguity
|
1
2
3
4
|
|
Proposed solutions:
- Disallow trailing yield in extends clause
- Requires an extra parameter to Expression and AssignmentExpression
- extends LeftHandSideExpression
- would be only place an expression isnt explicitly Expression or AssignmentExpression
BE: (whiteboard)
|
1
2
3
4
|
|
BE: Should have no trailing yield, as a static error
... lost track here...
WH: (whiteboard) Counterexample to claim about never requiring parentheses in expressions that would be unambiguous without them:
|
1
|
|
WH: Think of "extends" as having the same precedence as assignment operators. That's why class C extends (A + B) would require parentheses.
link Consensus/Resolution
- extends LeftHandSideExpression
- would be only place an expression isnt explicitly Expression or AssignmentExpression
link Cross-Realm Symbol Registration
(need slide)
AWB:
|
1
2
3
4
|
|
- Where for all strings S:
Symbol.keyFor(Symbol.for(S)) === S - the use case for
Symbol.keyForis serialization
Revisiting discussion from last meeting, re: Symbol.
Discussion regarding the value, or lack of, registered Symbols over Strings.
DH: Is it necessary to be Symbol.keyFor()? What about Symbol.prototype.key`
DS: Is there direct correspondance between Symbol and toString?
DH: If the symbol is registered, toString does the same as Symbol.keyFor
AWB: is this good?
DH: What does Symbol.keyFor return if the symbol is unregistered?
undefined
link Consensus/Resolution
- Agree on proposed API.
- If the symbol is unregistered:
Symbol.keyFor(unregistered symbol)returnsundefined Symbol.keyFor(not a symbol)throws
AWB: An issue about Symbols not being usable as WeakMap keys... ...which is ok...
This lead to discussion about (re)naming of WeakMap. It's possible that WeakMap may be renamed SideTable
link Introduce a Prototype object that contains sloppy arguments object @@iterator function?
Discussion re:
argumentsprototypearguments.prototype.constructor
AWB/MM: instanceof is generally misused
AWB: Current spec: all built-in iterators. Self hostable
MM: Issues are with consistency.
BE: (whiteboard)
|
1
2
3
|
|
MM: ...future JS programmers learning classes without understanding prototypes. Let's not unnecessarily introduce new abstractions that can't be understood within these semantics.
(meta discussion)
AWB: (describing a spec that used class inheritance for all new inherited objects, eg. Array.Iterator)
BE: Return to the question... should arguments be iterable, and how?
AWB/MM: (discussion re:
link Consensus/Resolution
...?
link Conventions for ignore over-ride of @@iterator
MM: Why is this a spec issue?
AWB: @@iterator is bad example, @@toStringTag is better
BE: Use undefined, not "falsey"
AWB: re: new Map(?, "is")
BE/RW: new Map(undefined, "is") defaults to empty list
AWB: Happy with undefined.
link Consensus/Resolution
- Just use
undefined
link (function Foo() {}).bind(x).name?
See: http://wiki.ecmascript.org/doku.php?id=harmony:function_name_property
AWB: What about anonymous function expressions?
RW: No name is made
AWB: What about bound anonymous function expressions?
RW: Same, no name.
DS: Could bound functions delegate their name? Do we want to do that?
BE: Might be interesting to find out, can chat with Brandon about this.
link Consensus/Resolution
- "bind" wins over "bound"
- Brandon needs to review the spec.
link 9 ECMA 404 W3C TAG / TPAC report
(Alex Russell)
AR: (recapping JSON specification leading to 404) ... There are people at the IETF that want more restrictions, eg. a number types, character encoding.
WH/MM: what does that mean?
AWB: Let's avoid doing what they're doing.
AR: They want to restrict all the things, that we're simply not willing to do. ... The draft revision includes non-normative "advice". They've also diverged on what is "valid JSON".
RW: Specifically, they've changed JSON so that JSONValue is not the top level grammar production, using JSONText instead. This means only "{}" and "[]", which is incompatible with Ecma-404.
AR: (proposal to work together)
STH: 3 levels.
- Bytes on the wire. For example reject UTF-32
- Sequence of unicode code points that make up a valid JSON sequence. This is covered by ECMA 404.
- Semantics of this structure. For example, reject numbers with a thousand digits.
link Consensus/Resolution
- Alex will draft statement to send to IETF last call, due Thursday
link 4.9 Reconsidering Object.is
(Dave Herman)
DH: Object.is might be a mistake
AWB: Could be trying to fill one of two purposes:
- the finest distinction possible
- what you really wish triple equal was
For general use, you want -0 and +0 to be equated, NaN to equal NaN
MM, WH: Multiple NaNs are not visible in JavaScript
AWB, DH: Different NaNs are distinguishable if aliased via TypedArrays
AWB: Hence Object.is does not discriminate as finely as possible
WH: That would be a mistake. ES1-5 clearly state that the NaN values are indistinguishable, and some implementations rely on that for NaN-boxing. Object.is should consider all NaNs to be the same.
[ discussion ]
AWB: NaNs are technically still not distinguishable in ECMAScript because an implementation has the freedom to write any quiet NaN bit pattern into a TypedArray, not necessarily the one that generated the NaN; in fact, writing the same NaN twice might generate different bit patterns.
Discussion about equating NaN values (https://github.com/rwaldron/tc39-notes/blob/master/es6/2013-01/jan-29.md#conclusionresolution)
MM: The spec allows 0/0 to be written to a TypedArray twice with different actual bit pattern.
More discussion re: IEEE NaN
link Consensus/Resolution
- Status Quo
jQuery Mobile Team Meeting – Nov 14 2013
- Attending: Jasper de Groot, Gabriel Schulhof, Alexander Schmitz, Anne-Gaelle Colom
Time: 2pm ET
link Official Agenda:
- new issues after 1.4 RC1
- triage: 1.4.1 milestone
- status TODO’s for 1.4 final
- Demos open tickets
- ThemeRoller is still work in progress
- new web site including upgrade guide and complete changelog
link Updates:
link Jasper de Groot
- didn’t have much time last week, still working on ThemeRoller update
link Alexander Schmitz
- Amsterdam meetings
- update download builder for jquery-wp-content
- triage
- update jshint
- new demos nested listview
- started js side of new button
link Gabriel Schulhof
- Vacation
- Fixed blocker bug - comma missed by linter O_o
- Added demo for custom label in flipswitch
- Added API documentation for CSS necessary for custom flipswitch label/width
link Ghislain Seguin
- Updated dependencies in modules so the repo can actually be used as is using AMD
link Anne-Gaelle Colom
- started looking at the 1.4 api docs. adding the warning div where necessary and moving the code examples from xhtml to html. Will continue to do this next week. Will also adjust the iframe heights in a second pass (less urgent)
jQuery UI Team Meeting – Nov 13 2013
- AMD
- Still need to rename files
- Will use comments for CSS
- Accessibility
- Updated tooltip ajax PR
- TJ tested, Scott to do a final code review
- Tabs
- non-utf-8 URLs
- try/catch and on error use the non-decoded value.
- Dialog
- One open PR, need help with fixing unit tests, some test regressions from earlier changes kill the testsuite
- Jörn and Scott to get together on these this week
- Selectmenu
- Landed new menu-style
- Prototype for native menu, has lots of a11y issues
- Ticket triage
- 1 pending ticket -1
- 390 tickets total +3
- 44 pull requests -5
jQuery Core Team Meeting – Nov 11 2013
Attending: DaveMethvin, timmywil, gibson042, m_gol
##Beta2 -- REALLY this week
- Thanks for moving things along
- TODOs for beta2
- http://bugs.jquery.com/ticket/14180 - dmethvin
- https://github.com/jquery/jquery/pull/1369
- http://bugs.jquery.com/ticket/14207 - dmethvin
- http://bugs.jquery.com/ticket/14424 - dmethvin
- http://bugs.jquery.com/ticket/14475 - dmethvin
- https://github.com/jquery/jquery/pull/1425 - m_gol landed
- https://github.com/jquery/jquery/pull/1421 - land this after other stuff
- https://github.com/jquery/jquery/pull/1419 - cast to string both branches, gibson042
- https://github.com/jquery/jquery/pull/1415 - meh
- https://github.com/jquery/jquery/pull/1400 - dmethvin
- https://github.com/jquery/jquery/pull/1384 - ask author to do all years
- https://github.com/jquery/jquery/pull/1377 - pinged johnkpaul
- https://github.com/jquery/jquery/pull/1367 - close until event refactor done
- https://github.com/jquery/jquery/pull/1346 (closed)
- https://github.com/jquery/jquery/pull/1340 - pinged author
- https://github.com/jquery/jquery/pull/1426 - m_gol landed
- Discussion regarding data-foo-42 and the meaning of life.
- Should we put jQuery 2.1.0-beta.2 on npm as an experimental/canary build? npm supports canary builds.
- it would give some time for browserify folks to try if it works as it should
- some people expect that: https://github.com/coolaj86/node-jquery/issues/59#issuecomment-25353525
jQuery Core Team Meeting – Nov 04 2013
Attending: DaveMethvin, gibson042, markelog
link Beta2 Thursday?
link jQuery 1.11/2.1 beta2 TODOs
- Need to get done before we ship (this week)
- http://bugs.jquery.com/ticket/14180 - dmethvin
- Patch doesn't work on Opera 12
- Do we still support Opera 12? markelog and m_gol vote yes
- If so, I will skip the test
- http://bugs.jquery.com/ticket/14415
- Move sourceMap comment to end of the file to simplify
- For beta2, remove comment from RELEASE .min.js file
- Custom builds will still have the map comment
- Remove .js reference from .min.map file - yes (dmethvin)
- Tell people to add their own comment at the end
- http://bugs.jquery.com/ticket/14340 - m_gol
- http://bugs.jquery.com/ticket/14207 - jaubourg
- http://bugs.jquery.com/ticket/14424 - jaubourg
- http://bugs.jquery.com/ticket/14475 - jaubourg
link Vagrant - gnarf to keep an eye on it
- http://bugs.jquery.com/ticket/14488
- https://github.com/jquery/jquery/pull/1410
- Dave asking status on the PR
link Other tickets (for the beta)? Who can take them?
- http://bugs.jquery.com/ticket/14484
- data()-related tickets
- http://bugs.jquery.com/ticket/14101 gnarf
- http://bugs.jquery.com/ticket/14376 rwaldron
- http://bugs.jquery.com/ticket/14459 gibson042
link Commit message style:
- https://github.com/jquery/contribute.jquery.org/pull/61
- Should we subscribe to some variant of this? Seems that we should, I've just been lazy about consistency.
- Please add your thoughts/comments there, let's see if we can have a project-wide standard
link JSCS - markelog to land
- https://github.com/jquery/jquery/pull/1396
- Any problems with landing this now?
link CSP - markelog to land
link jQuery Migrate
- http://swarm.jquery.org/project/jquerymigrate
- Should we add Bower support here as well?
link jQuery 1.11/2.1 final changes to release script (timmywil)
- http://bugs.jquery.com/ticket/14451
- Need to update build script to create tagged headless commit for release
- Should include bower deps and built file for simplicity
jQuery Mobile Team Meeting – Oct 31 2013
- Attending: Jasper de Groot, Gabriel Schulhof, Alexander Schmitz, Anne-Gaelle Colom
Time: 2pm ET
link Official Agenda:
- new issues after 1.4 RC1
- no blocker issues
- some minor issues that we can fix in first maintenance release 2-3 weeks after final
- status TODO’s for 1.4 final
- API docs are updated
- demos almost done
- ThemeRoller is still work in progress
- 2-3 days needed for new web site
link Updates:
link Jasper de Groot
- working on ThemeRoller update
link Alexander Schmitz
- investigating and triaging post rc issues
- updateing changelog script
- work on button re-write
- finished classes option testing
- ios 7 issues ( lots )
- demos updates
link Gabriel Schulhof
- Fixed most API issues.
- Not familiar enough with panels to document their classes
- No real excuse for not fixing #166 :), though I may not know enough about tabs
link Ghislain Seguin
- Started working on automation for the release process. Trying to use grunt-git but so far no success in committing the files to the codeorigin repo.
link Anne-Gaelle Colom
- api docs: added the icons page
jQuery UI Team Meeting – Oct 30 2013
- AMD
- https://github.com/jquery/jquery-ui/pull/1029
- Landend globals fix
- Still need to figure out how to deal with CSS files.
- Still need to rename files
- No de-facto solution for dealing with CSS; maybe defer solving this?
- Either keep ad-hoc solution in DB, or adopt comments-approach from Mobile?
- Need an estimate how much effort it is to implement comments parsing as an intermediate solution
- Accessibility
- Updated tooltip ajax PR:
- https://github.com/jquery/jquery-ui/pull/1118
- TJ to test
- Button
- Update from Alex on button rewrite?
- https://docs.google.com/document/d/1yFD_Y9QuuMTI4NOc-JQYRjPTrcVV52h7ZeLKLPbSj40/edit
- PR for review:
- https://github.com/jquery/jquery-ui/pull/1126
- Dialog
- One open PR, need help with fixing unit tests, some test regressions from earlier changes kill the testsuite
- Scott to look at failures after selectmenu tasks
- Scoped Themes
- Dialog needs to be appended to a container for scoped themes to work
- http://bugs.jqueryui.com/ticket/9616
- Could be addressed in DB
- https://github.com/jquery/download.jqueryui.com/issues/145
- Should see how this is solved in Mobile 1.4, talk to Jasper about it
- Swatches and their inheritance sounds like a much better solution then generating (multiple) themes with scopes
- Put it on the Amsterdam agenda
- Selectmenu
- Landed more bugfixes
- Experimenting with menu styling
- More margin:
- http://view.jqueryui.com/menu-item-styling/demos/menu/default.html
- Compact:
- http://view.jqueryui.com/menu-style/demos/menu/icons.html
- Need to add multi-line samples; styles should be more clean and tight, while making it easy enough to keep items apart
- Ticket triage
- 2 pending tickets +2
- 387 tickets total +13
- 49 pull requests +1
- Classes Option
- http://wiki.jqueryui.com/w/page/65050459/Classes%20Option
- Still needed, not just for compat with Mobile themes
- Alex to finish his testing. Status?
- Put it on the Amsterdam agenda
- CLDR
- Rafael to test date formatting/parsing with datepicker rewrite; number formatting/parsing with spinner
- Progressing, reporting documentation issues in their Trac
- Rafael to test date formatting/parsing with datepicker rewrite; number formatting/parsing with spinner
- Datepicker
- TJ filled out the options list on the wiki
- Will schedule a call when the remaining TODOs are done
- Alex to test the rewrite on mobile and report issues. Inline datepicker seems like the wrong solution. Status?
- Still to do:
- Update $.date to remove the jQuery dependency.
- Fixing multi-month, WIP
- Partial fix in for multi-month
- Discussed moving $.date to Globalize, as its own module, but within the library. Not much favor, need an alternative solution.
- No dependency except for the namespace, so just need to come up with a name.
- TJ filled out the options list on the wiki
- Draggable
- Mike hardening the testsuite, fixing IE issues