ES6 support in Gcloud functions ?

56 views
Skip to first unread message

Mohit G

unread,
Mar 9, 2018, 4:56:39 PM3/9/18
to Google App Engine
Hi There,

Does gcloud functions support ES6 functions ?

Which node version does it support.


Thank you,


Katayoon (Cloud Platform Support)

unread,
Mar 12, 2018, 6:17:08 PM3/12/18
to Google App Engine

ECMAScript 2015 (ES6) is supported in Node.js v8.9.4 and the later versions, so you may apply it in Cloud Functions. An overview over supported ECMAScript features in various versions of Node.js is provided by node.green, which shows all shipping features (The ones which are turned on by default on Node.js and do NOT require any kind of runtime flag).

Here you could find a sample on how to publish messages to a Cloud Pub/Sub topic from a Cloud Function using ES6.
Reply all
Reply to author
Forward
0 new messages