LTE Beacon JavaScript ECMAScript 6 Supported Features

The LTE Beacon Micro-App documentation says:

Some notably- not -supported ES2015 features:

  • let and const
  • destructuring
  • spread and rest ... operators
  • iterators and for ... of
  • Object.values and .entries
  • DataView , Map , Set
  • (and more)

None of ES2016 and beyond is supported at this time, most notable ommision being async and await .

Is there a plan to fully support ECMAScript 6 in the future?

No concrete plans yet. Is there anything in particular that you’re missing, that’d make your time writing micro-apps easier?

@Piotr_Malek Is there any updated documentation about what ES2015 features that will be supported?

The latest documentation says:

LTE Beacon: Micro-app API reference [0.2.12]

Micro-apps are written in JavaScript . All of ECMAScript 5.1 is supported. Select things from ECMAScript 2015 (also known as the “6th edition”, or “ECMAScript 6”) are also supported:

  • arrow functions
  • classes
  • enhanced object literals (shorthands & computed/dynamic property names)
  • default function arguments
  • template literals
  • promises
  • ArrayBuffer and typed arrays
  • DataView , Map , Set
  • Object.keys

Some notably- not -supported ES2015 features:

  • let and const
  • destructuring
  • spread and rest ... operators
  • iterators and for ... of
  • Object.values and .entries
  • (and more)

None of ES2016 and beyond is supported at this time, most notable ommision being async and await .

@Piotr_Malek Any idea why async and await from ES2016 and beyond isn’t supported, and when that might be supported?

LTE Beacons are running on small, low-power microprocessor with limited RAM and Flash memory. Implementation of async/await is on low priority, because it does not limit very much what you can do with API, but it will take space for other features that we would like to implement that will bring more impact.