5 ms·
Anyone have a good summary of the language feature changes & APIs (either standards or standards track) that are in the version of V8 that ships with Node 7 vs
by emilong 10y ago
Anyone have a good summary of the language feature changes & APIs (either standards or standards track) that are in the version of V8 that ships with Node 7 vs Node 6?
- jefozabuss 10y agoFrom what I read in slack: Do not use async/await yet (with --harmony-async-await flag) because it has memory leaks (V8 5.5 will fix it when it gets added)
- ilkkao 10y agoIs it known how easy it is to trigger the memory leak?
- PacoLoco 10y agoVictor & Marlen
- subie 10y agoI came across this just the other day.. https://github.com/MatAtBread/fast-async https://github.com/MatAtBread/fast-async
- TheRealPomax 10y agoAs a not-elligible-for-LTS version, it's probably fine - you're not going to be using Node 7 in production anyway, as it's only ever a cutting-edge release, unless you don't care about stability in which case memleaks are part and parcel.
- jbergstroem 10y agoExpect a blog post shortly, but from v8 we get these language changes: - await/async behind flag (already covered in thread) - Exponentiation operator: > console.log(60**2*24); 86400 - Object.{values,entries}: > o = { a: 1, b: 2} > Object.values(o); [ 1, 2 ] - Object.getOwnPropertyDescriptor(s): > o = { a: 1 } > Object.getOwnPropertyDescriptors(o); { a: { value: 1, writable: true, enumerable: true, configurable: true } } Additionally, there's a lot of pretty impressive optimization work done by the v8 team. You can read more about that on their blog: http://v8project.blogspot.com http://v8project.blogspot.com Finally, one of my favorite things about Node.js 7.0 is the WhatWG http parser: https://github.com/nodejs/node/pull/7448 https://github.com/nodejs/node/pull/7448. edit: elaborated on exponentiation operator
- paulirish 10y agohttp://node.green http://node.green tackles this pretty well.
- Macha 10y agograceful-fs v3.0 is dead. This can bite you if you haven't updated gulp, less, npm, bower or similar in a while