-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add support for native ES6 class Symbol #880
Comments
@jmesserly is this something you could look in to? |
Sure thing. Sounds neat. |
hmmm. My first thought was a PolymerExpressions issue but it seems to work: |
aha. The example works if you use so it's not an issue of Symbols not working in the index expr, what seems to be happening is that modifying the object doesn't trigger a change event. |
... and/or the change event isn't handled correctly. |
Try this in the console: var o = {}; Object.observe(o, function(r) { console.log(r); }); o['abc'] = 123; o[5] = 6; o[Symbol('foo')] = 'bar'; there's no change event for the symbol, even though the contents of |
opened a V8 bug: https://code.google.com/p/v8/issues/detail?id=3682 |
if i try your example no difference. there might be 2 problems. could you please reopen the bug because it fails also when using the created callback ? |
hmm, really? I'm also running Chrome Version 39.0.2171.52 beta (64-bit) I don't think I have any experimental flags turned on... |
More info that might help:
|
|
Nice! I wonder if maybe it's fixed in the latest Chrome beta then. Since Symbol is very new, I imagine there are changes from release to release as they find & fix bugs. I just tried Version 40.0.2211.0 canary (64-bit), and this link works there too http://jsbin.com/fokawetabe/1/edit?html,output |
Okay - thats good news ! So its the best to keep this issue closed for now. |
I play a lot with ES6 and recognized that current Polymer (version 0.4.2) does'nt handle native
Symbol
usage properly.ES6 class
Symbol
arrived natively in Chrome 38. Current Chrome is 39.When you run the following example in Chrome(>=38) you'll get an error
Example code :
I guess the polymer-expression-to-function-conversion compiler provocates this error.
Live example (press F12 to see error in webinspector!) : http://jsbin.com/wegero/1/edit?html,output
The text was updated successfully, but these errors were encountered: