27 karma · joined June 4, 2012
If your app is shipped as a single bundle this means your entry point would be unable to run anything while dependencies are awaiting if you use `import` declarations. If your app places runtime dependent imports into a dynamic import like using `import()` as a function, it would not be suspended while waiting.
function f() {
const queue = [];
consumer(queue);
return queue;
}
It could be important to note that removing const has benign effect, but that it is there to ensure a programmer does not change the value of queue between `consumer(queue)` and `return queue`. Easily reasoned about, but extra safeguards from introducing bugs is always nice.But the fact that Unicode functions don't expand adds an interesting problem for us; the MAXPATH respecting (and outdated) _A filesystem functions can cause a collision for non-expanded paths we get to fun things where you can have different FILE objects if you use old _A functions vs _W functions. The inverse is also true where you can collide by moving from _W to _A.
So! If we do start using old _A functions we actually can cause problems by directing to new files that would cause expansion because of file expansion being turned on.
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...
* https://msdn.microsoft.com/en-us/library/ms813802.aspx
PS. Don't get me started on FS permissions...
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...