I just want to point out you can use esdiscuss.org today for that form of
viewing. No need to switch platforms for it.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
In theory this sounds like a cool idea, I didn't even know variable
assignments named functions.
The only issue I see here is how we're now differentiating assignment by
where it happens - what if the property is computed? As far as I know
function names are more constrained (like variable names)
Out of curiosity, can you give an example of the Not Good parts? ISTM the
await prefix is more of an explicit cast than an implicit conversation, and
other than the very small timing gap in how throws are handled I pointed
out a few days ago, I can't think of any situations where a throw would
I just want to point out that Bergus (OP) informed me that the assignment
behavior happens in computed object literal keys. So:
```js
let o = {
[fn + name] () {}
}
o.fnname.name; // fnname
```
On Sun, Jul 26, 2015 at 10:55 PM, Andrea Giammarchi
andrea.giammar...@gmail.com wrote:
with
with all due respect Allen, I'm completely against magic-function-name
assignment for various reason and leaking ain't one.
What could you assign in ES6 that cannot be retrieved anyway through
getOwnPropertySymbols and getOwnPropertyNames ? A triple-magic private
Proxy handler or what?
I mean,
Babel does not shim this deliberately, it is impossible enough as it is:
see https://github.com/babel/babel/issues/2080
Defined in
http://www.ecma-international.org/ecma-262/6.0/index.html#sec-object-initializer-runtime-semantics-propertydefinitionevaluation
you can see that if it's a symbol it
On Jul 26, 2015, at 12:55 PM, Andrea Giammarchi wrote:
with all due respect Allen, I'm completely against magic-function-name
assignment for various reason and leaking ain't one.
Implicit function name property assignment is part of ES2015.
What could you assign in ES6 that cannot be
What is the function's name if the computed object literal key is a Symbol?
ie, what does the following output:
```js
const sym = Symbol('something');
const o = {
[sym] () {}
};
console.log(o[sym].name);
```
Currently it appears Babel outputs an empty string for this case.
If the current
On Jul 26, 2015, at 5:11 AM, Benjamin Gruenbaum wrote:
In theory this sounds like a cool idea, I didn't even know variable
assignments named functions.
The only issue I see here is how we're now differentiating assignment by
where it happens - what if the property is computed? As far as
On Sun, Jul 26, 2015 at 8:07 AM, Benjamin Gruenbaum benjami...@gmail.com
wrote:
Out of curiosity, can you give an example of the Not Good parts? ISTM
the await prefix is more of an explicit cast than an implicit conversation,
and other than the very small timing gap in how throws are handled
On Jul 26, 2015, at 1:17 PM, Jordan Harband wrote:
What is the function's name if the computed object literal key is a Symbol?
ie, what does the following output:
specified in step 4 of
http://ecma-international.org/ecma-262/6.0/#sec-setfunctionname
```js
const sym =
11 matches
Mail list logo