0

I am not using any browser. I am writing JS code along with QML.
Error is on this line:

var distanceBetweenPoints2DimArray = new Float64Array (0)

I need to store a float point value in an array in JS.

Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411

1 Answers1

1

The Specifications section of MDN's documentation for Float64Array says that it's an ECMAScript 6 feature, with ECMAScript 6 currently in draft status, so it's not implemented in Qt yet. A git grep Float64Array in qtdeclarative.git confirms this.

Searching through Qt's code review yields only one change from 2012 that was never merged:

https://codereview.qt-project.org/#/q/project:qt/qtdeclarative+message:typedarray,n,z

Searching through bug reports shows that it "should be implemented at some point":

https://bugreports.qt-project.org/browse/QTBUG-26265

Edit: I'm told that support for this is being worked on, with an initial estimate of being ready for Qt 5.5.

Mitch
  • 23,716
  • 9
  • 83
  • 122