Comments (9)
I have a minimal repro, it requires several conditions to trigger the bug, notably nested lambdas.
This breaks Edge 14.4393:
function g(cb) { return g() }
let f = ({ x }) => g(() => x);
f({ x: 42 }); // should return 42 but throws "use before declaration".
from bootstrapper.
Found a relevant Chakra bug: chakra-core/ChakraCore#2606.
It was opened 5 days ago, I guess it is a recent update. :(
from bootstrapper.
We don't need the lambda, we can use function notation if it's going to help, since we only use the scope anyway (no this
calls). I'd say we can re-release with a workaround.
Good catch, by the way!
from bootstrapper.
The bug is not hard to work around as it's very sensible to syntax. Even just adding braces (block) make it vanish.
If we publish a fix the hardest part is making sure minifiers don't simplify the syntax back to broken. For instance, if we add braces or function
I would expect a minifier to remove them...
It was not a hard catch as unfortunately now Aurelia ES6 does not run at all in Edge. 😦
from bootstrapper.
@EisenbergEffect do you want to publish a fix? I can PR one if you want to.
from bootstrapper.
Oh, definitely. If you send a PR I'll get it out today.
from bootstrapper.
@EisenbergEffect The fix is in the linked PR, it works for me.
from bootstrapper.
Merged.
from bootstrapper.
Release coming in a few minutes.
from bootstrapper.
Related Issues (20)
- Unable to run e2e tests in phantomjs after the latest update HOT 1
- Changes break focus.bind HOT 1
- 'aurelia-templating' not found error. HOT 13
- [email protected] is installing [email protected] HOT 1
- body replaced after 'Aurelia started' HOT 4
- Hard dependency on aurelia-polyfills HOT 1
- My Aurelia RC application will not run in IE11, typescript transpiled to ES6 HOT 8
- Add support for data-* attribute HOT 1
- Severe semver issues! HOT 11
- Bootstrap CSS loads last and overrides custom styles HOT 12
- Please consider switching to Yarn for Javascript package management HOT 7
- i have error regarding to router configuration. GET http://127.0.0.1:8080/aurelia-templating-router 404 (Not Found) and Uncaught (in promise) Error: (SystemJS) Error: XHR error (404 Not Found) loading http://127.0.0.1:8080/aurelia-templating-router(…).this two errors are shown HOT 2
- Bootstrapper v2 attempts to use pal-nodejs while running on nwjs HOT 7
- aurelia-pal-browser tryng loading in wwwroot folder with ASP.NET HOT 5
- Can't use es2015 or native-modules with webpack HOT 3
- Bootstrapper appears not to return promise HOT 1
- Require like loader not possible HOT 14
- isNodeLike returns incorrectly in browser HOT 6
- Bootstrapper doesn't work with Electron Forge HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrapper.