josdejong / mathjs

An extensive math library for JavaScript and Node.js
https://mathjs.org
Apache License 2.0
14.35k stars 1.24k forks source link

Qml and math.js > 9.4.3 #2346

Closed Elgot closed 2 years ago

Elgot commented 2 years ago

In #1454 it was discovered that math.js works in qml if all occurences of "use strict"; is replaced with ";use strict";. This was the case until version 9.4.4.

This version (or later) together with the test app in #1454 gives: math.js:33: TypeError: Type error

Was there major changes from version 9.4.3 and may there be a workaround?

There are also some strange characters in the file, but that is perhaps unrelated. ... {target:"String",proto:!0,forced:r(212)("trim")},{trim:function(){return i(this)}})},function(e,t,r){var n=r(10),i=r(97);e.exports=function(e){return n((function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e}))}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator] ...

Elgot commented 2 years ago

This line seems to cause the error

function(e,t,r)
{
    var n=r(20),i=r(23),a=r(73);
    e.exports=n?
    function(e,t,r)
    {
        return i.f(e,t,a(1,r)) // <--------------- Type error
    }
    :
    function(e,t,r)
    {
        return e[t]=r,e
    }
}

Version 10.0.0 has the same issue, but with the following function:

function(e,t,r){
    var n=r(21),i=r(24),a=r(88);
    e.exports=n?
    function(e,t,r)
    {
        return i.f(e,t,a(1,r)) // <--------------- Type error
    }
    :
    function(e,t,r)
    {
        return e[t]=r,e
    }
}
josdejong commented 2 years ago

You can see a summary of the changes in https://github.com/josdejong/mathjs/blob/develop/HISTORY.md#2021-07-07-version-944

There where no breaking changes, at least from a functional point of view. Maybe the issue is caused by the fix for missing polyfill for Symbol or so? It's hard to tell from the minified code that you post what part of the code is exactly triggering this issue.

Elgot commented 2 years ago

I would love to provide more information, but thats about all I have. I get the type error by just importing the file, but if the line above (the function starts at line 33:20841 in version 10.0.0) is replaced with, for instance, return 1 everything seems to work (exept that function (whatever it is) obviously).

I'm afraid I'm not very familiar with the structure of this project. What is r(24)?

cshaa commented 2 years ago

Could you please provide more information about your project setup? A step by step guide that reproduces this issue would be great.

Elgot commented 2 years ago

Could you please provide more information about your project setup? A step by step guide that reproduces this issue would be great.

I'm running Qt 6.2.1 (although older versions seems to behave the same) on windows and linux. Nothing more than including the file is required to trigger the error, but this is a small example:

import QtQuick 2.15
import QtQuick.Window 2.15
import "math943.js" as MathJs

Window {
    width: 640
    height: 480
    visible: true
    title: math.version;
}

With math.js 9.4.3 this gives a window with title "9.4.3".

If math.js 9.4.4 or later is used running the program prints

qrc:/math10.js:33: TypeError: Type error
qrc:/main.qml:9: ReferenceError: math is not defined

and the window title is not set.

There are also lots of warnings like these, but perhaps they are just warnings.

qt.qml.compiler: file:qrc:/math10.js:27:5017 Variable "oe" is used before its declaration at 27:5735.
qt.qml.compiler: file:qrc:/math10.js:27:5241 Variable "ie" is used before its declaration at 27:5479.
qt.qml.compiler: file:qrc:/math10.js:27:5542 Variable "ae" is used before its declaration at 27:5685.
qt.qml.compiler: file:qrc:/math10.js:27:5648 Variable "ae" is used before its declaration at 27:5685.
qt.qml.compiler: file:qrc:/math10.js:27:12363 Variable "S" is used before its declaration at 27:12369.
qt.qml.compiler: file:qrc:/math10.js:33:3828 Variable "e" is used before its declaration at 33:3955.
qt.qml.compiler: file:qrc:/math10.js:33:3838 Variable "t" is used before its declaration at 33:3957.
qt.qml.compiler: file:qrc:/math10.js:33:3848 Variable "r" is used before its declaration at 33:3959.
qt.qml.compiler: file:qrc:/math10.js:33:3859 Variable "e" is used before its declaration at 33:3955.
qt.qml.compiler: file:qrc:/math10.js:33:3862 Variable "n" is used before its declaration at 33:3961.
qt.qml.compiler: file:qrc:/math10.js:33:3873 Variable "t" is used before its declaration at 33:3957.
josdejong commented 2 years ago

@Elgot can you try out the following non-minified mathjs bundle of version 10?

mathjs_10_non_minified.zip

Hopefully that gives a clear stacktrace helping to pinpoint which of the code is triggering this issue.

(FYI: I created the non minified version by adding optimization: { minimize: false }, to the webpackConfig in gulpfile.cjs and then running npm run build)

Elgot commented 2 years ago

@Elgot can you try out the following non-minified mathjs bundle of version 10?

mathjs_10_non_minified.zip

Hopefully that gives a clear stacktrace helping to pinpoint which of the code is triggering this issue.

(FYI: I created the non minified version by adding optimization: { minimize: false }, to the webpackConfig in gulpfile.cjs and then running npm run build)

Thanks. The output is then:

lots of warnings
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:559:48 Variable "onHandleUnhandled" is used before its declaration at 624:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:584:39 Variable "onUnhandled" is used before its declaration at 601:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:605:24 Variable "isUnhandled" is used before its declaration at 620:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:614:36 Variable "isUnhandled" is used before its declaration at 620:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:1337:53 Variable "toNumber" is used before its declaration at 1342:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:3505:44 Variable "$getOwnPropertySymbols" is used before its declaration at 3544:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:3507:30 Variable "$propertyIsEnumerable" is used before its declaration at 3516:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:4827:11 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:4917:12 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:4929:21 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5150:12 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5323:9 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5625:9 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5647:13 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5908:11 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:5911:11 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6218:18 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6291:9 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6540:11 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6553:10 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6559:9 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6559:49 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:6634:11 Variable "divide" is used before its declaration at 7126:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:10768:15 Variable "data" is used before its declaration at 10779:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:10768:20 Variable "normalize" is used before its declaration at 10775:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:10769:19 Variable "POLYFILL" is used before its declaration at 10781:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:10770:16 Variable "NATIVE" is used before its declaration at 10780:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:12003:29 Variable "defaultIterator" is used before its declaration at 12018:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:12003:53 Variable "defaultIterator" is used before its declaration at 12018:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:12004:44 Variable "IterablePrototype" is used before its declaration at 12014:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:12004:70 Variable "IterablePrototype" is used before its declaration at 12014:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:14776:3 Variable "meta" is used before its declaration at 14801:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:14929:24 Variable "Prototype" is used before its declaration at 14941:9.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:14947:19 Variable "getEntry" is used before its declaration at 14971:9.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:15874:23 Variable "insertionSort" is used before its declaration at 15882:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:15874:57 Variable "merge" is used before its declaration at 15897:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:17289:9 Variable "record" is used before its declaration at 17305:13.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:17290:9 Variable "record" is used before its declaration at 17305:13.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69403:7 Variable "gammaP" is used before its declaration at 69415:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69405:23 Variable "gammaP" is used before its declaration at 69415:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69406:10 Variable "gammaP" is used before its declaration at 69415:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69409:15 Variable "gammaG" is used before its declaration at 69414:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:75349:35 Variable "unsafe" is used before its declaration at 75362:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:75354:28 Variable "unsafe" is used before its declaration at 75362:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:21996:29 Variable "safeNativeMethods" is used before its declaration at 22029:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:21935:29 Variable "safeNativeProperties" is used before its declaration at 22025:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18637:88 Variable "typed_createTyped" is used before its declaration at 22294:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18638:92 Variable "createResultSet" is used before its declaration at 22642:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18639:97 Variable "createBigNumberClass" is used before its declaration at 22731:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18640:95 Variable "createComplexClass" is used before its declaration at 22798:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18641:96 Variable "createFractionClass" is used before its declaration at 23011:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18642:93 Variable "createRangeClass" is used before its declaration at 23068:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18643:94 Variable "createMatrixClass" is used before its declaration at 23416:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18644:99 Variable "createDenseMatrixClass" is used before its declaration at 23717:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18645:88 Variable "createClone" is used before its declaration at 24777:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18646:92 Variable "createIsInteger" is used before its declaration at 25023:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18647:93 Variable "createIsNegative" is used before its declaration at 25103:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18648:92 Variable "createIsNumeric" is used before its declaration at 25156:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18649:98 Variable "createHasNumericValue" is used before its declaration at 25209:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18650:93 Variable "createIsPositive" is used before its declaration at 25257:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18651:89 Variable "createIsZero" is used before its declaration at 25313:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18652:88 Variable "createIsNaN" is used before its declaration at 25376:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18653:89 Variable "createTypeOf" is used before its declaration at 25432:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18654:94 Variable "createEqualScalar" is used before its declaration at 25561:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18655:100 Variable "createSparseMatrixClass" is used before its declaration at 25640:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18656:89 Variable "createNumber" is used before its declaration at 27299:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18657:89 Variable "createString" is used before its declaration at 27410:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18658:90 Variable "createBoolean" is used before its declaration at 27466:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18659:92 Variable "createBignumber" is used before its declaration at 27545:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18660:90 Variable "createComplex" is used before its declaration at 27626:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18661:91 Variable "createFraction" is used before its declaration at 27718:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18662:89 Variable "matrix_createMatrix" is used before its declaration at 27786:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18663:101 Variable "createMatrixFromFunction" is used before its declaration at 27874:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18664:97 Variable "createMatrixFromRows" is used before its declaration at 27972:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18665:100 Variable "createMatrixFromColumns" is used before its declaration at 28087:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18666:92 Variable "createSplitUnit" is used before its declaration at 28191:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18667:93 Variable "createUnaryMinus" is used before its declaration at 28563:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18668:92 Variable "createUnaryPlus" is used before its declaration at 28618:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18669:86 Variable "createAbs" is used before its declaration at 28677:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18670:88 Variable "createApply" is used before its declaration at 28732:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18671:92 Variable "createAddScalar" is used before its declaration at 28854:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18672:87 Variable "createCbrt" is used before its declaration at 28898:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18673:87 Variable "createCeil" is used before its declaration at 29227:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18674:87 Variable "createCube" is used before its declaration at 29362:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18675:86 Variable "createExp" is used before its declaration at 29415:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18676:88 Variable "createExpm1" is used before its declaration at 29466:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18677:86 Variable "createFix" is used before its declaration at 29518:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18678:88 Variable "createFloor" is used before its declaration at 29621:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18679:86 Variable "createGcd" is used before its declaration at 30245:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18680:86 Variable "createLcm" is used before its declaration at 30655:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18681:88 Variable "createLog10" is used before its declaration at 30808:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18682:87 Variable "createLog2" is used before its declaration at 30870:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18683:86 Variable "createMod" is used before its declaration at 31341:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18684:97 Variable "createMultiplyScalar" is used before its declaration at 31475:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18685:91 Variable "createMultiply" is used before its declaration at 31527:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18686:90 Variable "createNthRoot" is used before its declaration at 32429:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18687:87 Variable "createSign" is used before its declaration at 32630:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18688:87 Variable "createSqrt" is used before its declaration at 32691:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18689:89 Variable "createSquare" is used before its declaration at 32765:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18690:91 Variable "createSubtract" is used before its declaration at 32826:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18691:87 Variable "createXgcd" is used before its declaration at 32989:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18692:94 Variable "createDotMultiply" is used before its declaration at 33225:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18693:89 Variable "createBitAnd" is used before its declaration at 33877:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18694:89 Variable "createBitNot" is used before its declaration at 33978:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18695:88 Variable "createBitOr" is used before its declaration at 34022:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18696:89 Variable "createBitXor" is used before its declaration at 34247:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18697:86 Variable "createArg" is used before its declaration at 34345:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18698:87 Variable "createConj" is used before its declaration at 34396:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18699:85 Variable "createIm" is used before its declaration at 34444:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18700:85 Variable "createRe" is used before its declaration at 34497:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18701:86 Variable "createNot" is used before its declaration at 34570:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18702:85 Variable "createOr" is used before its declaration at 34624:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18703:86 Variable "createXor" is used before its declaration at 34742:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18704:89 Variable "createConcat" is used before its declaration at 34860:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18705:89 Variable "createColumn" is used before its declaration at 34996:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18706:88 Variable "createCount" is used before its declaration at 35052:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18707:88 Variable "createCross" is used before its declaration at 35095:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18708:87 Variable "createDiag" is used before its declaration at 35181:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18709:89 Variable "createFilter" is used before its declaration at 35532:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18710:90 Variable "createFlatten" is used before its declaration at 35606:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18711:90 Variable "createForEach" is used before its declaration at 35651:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18712:100 Variable "createGetMatrixDataType" is used before its declaration at 35722:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18713:91 Variable "createIdentity" is used before its declaration at 35775:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18714:87 Variable "createKron" is used before its declaration at 35923:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18715:86 Variable "map_createMap" is used before its declaration at 36014:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18716:87 Variable "createDiff" is used before its declaration at 36092:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18717:87 Variable "createOnes" is used before its declaration at 36278:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18718:88 Variable "range_createRange" is used before its declaration at 36428:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18719:90 Variable "createReshape" is used before its declaration at 36711:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18720:89 Variable "createResize" is used before its declaration at 36810:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18721:89 Variable "createRotate" is used before its declaration at 36939:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18722:97 Variable "createRotationMatrix" is used before its declaration at 37020:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18723:86 Variable "createRow" is used before its declaration at 37198:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18724:87 Variable "createSize" is used before its declaration at 37256:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18725:90 Variable "createSqueeze" is used before its declaration at 37307:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18726:89 Variable "createSubset" is used before its declaration at 37368:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18727:92 Variable "createTranspose" is used before its declaration at 37582:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18728:93 Variable "createCtranspose" is used before its declaration at 37754:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18729:88 Variable "createZeros" is used before its declaration at 37797:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18730:86 Variable "createErf" is used before its declaration at 37927:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18731:87 Variable "createMode" is used before its declaration at 38089:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18732:87 Variable "createProd" is used before its declaration at 38205:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18733:89 Variable "createFormat" is used before its declaration at 38282:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18734:86 Variable "createBin" is used before its declaration at 38431:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18735:86 Variable "createOct" is used before its declaration at 38474:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18736:86 Variable "createHex" is used before its declaration at 38517:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18737:88 Variable "createPrint" is used before its declaration at 38543:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18738:85 Variable "createTo" is used before its declaration at 38632:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18739:90 Variable "createIsPrime" is used before its declaration at 38713:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18740:90 Variable "createNumeric" is used before its declaration at 38859:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18741:95 Variable "createDivideScalar" is used before its declaration at 38933:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18742:86 Variable "createPow" is used before its declaration at 38989:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18743:88 Variable "createRound" is used before its declaration at 39207:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18744:86 Variable "createLog" is used before its declaration at 39370:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18745:88 Variable "createLog1p" is used before its declaration at 39445:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18746:91 Variable "createNthRoots" is used before its declaration at 39527:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18747:89 Variable "createDotPow" is used before its declaration at 39649:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18748:92 Variable "createDotDivide" is used before its declaration at 39759:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18749:89 Variable "createLsolve" is used before its declaration at 40008:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18750:89 Variable "createUsolve" is used before its declaration at 40168:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18751:92 Variable "createLsolveAll" is used before its declaration at 40340:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18752:92 Variable "createUsolveAll" is used before its declaration at 40545:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18753:92 Variable "createLeftShift" is used before its declaration at 40908:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18754:98 Variable "createRightArithShift" is used before its declaration at 41045:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18755:96 Variable "createRightLogShift" is used before its declaration at 41181:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18756:86 Variable "createAnd" is used before its declaration at 41315:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18757:90 Variable "createCompare" is used before its declaration at 41460:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18758:97 Variable "createCompareNatural" is used before its declaration at 41622:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18759:94 Variable "createCompareText" is used before its declaration at 41916:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18760:88 Variable "createEqual" is used before its declaration at 42002:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18761:92 Variable "createEqualText" is used before its declaration at 42166:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18762:90 Variable "createSmaller" is used before its declaration at 42214:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18763:92 Variable "createSmallerEq" is used before its declaration at 42357:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18764:89 Variable "createLarger" is used before its declaration at 42496:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18765:91 Variable "createLargerEq" is used before its declaration at 42639:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18766:92 Variable "createDeepEqual" is used before its declaration at 42772:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18767:90 Variable "createUnequal" is used before its declaration at 42854:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18768:98 Variable "createPartitionSelect" is used before its declaration at 43025:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18769:87 Variable "createSort" is used before its declaration at 43174:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18770:86 Variable "createMax" is used before its declaration at 43299:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18771:86 Variable "createMin" is used before its declaration at 43407:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18772:108 Variable "createImmutableDenseMatrixClass" is used before its declaration at 43520:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18773:93 Variable "createIndexClass" is used before its declaration at 43771:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18774:101 Variable "createFibonacciHeapClass" is used before its declaration at 44069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18775:91 Variable "createSpaClass" is used before its declaration at 44460:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18776:92 Variable "createUnitClass" is used before its declaration at 44716:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18777:95 Variable "createUnitFunction" is used before its declaration at 48696:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18778:89 Variable "createSparse" is used before its declaration at 48748:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18779:93 Variable "createCreateUnit" is used before its declaration at 48798:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18780:87 Variable "createAcos" is used before its declaration at 48877:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18781:88 Variable "createAcosh" is used before its declaration at 49044:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18782:87 Variable "createAcot" is used before its declaration at 49099:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18783:88 Variable "createAcoth" is used before its declaration at 49145:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18784:87 Variable "createAcsc" is used before its declaration at 49197:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18785:88 Variable "createAcsch" is used before its declaration at 49251:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18786:87 Variable "createAsec" is used before its declaration at 49295:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18787:88 Variable "createAsech" is used before its declaration at 49349:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18788:87 Variable "createAsin" is used before its declaration at 49407:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18789:88 Variable "createAsinh" is used before its declaration at 49461:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18790:87 Variable "createAtan" is used before its declaration at 49504:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18791:88 Variable "createAtan2" is used before its declaration at 49557:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18792:88 Variable "createAtanh" is used before its declaration at 49676:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18793:86 Variable "createCos" is used before its declaration at 49727:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18794:87 Variable "createCosh" is used before its declaration at 49782:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18795:86 Variable "createCot" is used before its declaration at 49832:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18796:87 Variable "createCoth" is used before its declaration at 49883:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18797:86 Variable "createCsc" is used before its declaration at 49936:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18798:87 Variable "createCsch" is used before its declaration at 49987:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18799:86 Variable "createSec" is used before its declaration at 50040:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18800:87 Variable "createSech" is used before its declaration at 50091:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18801:86 Variable "createSin" is used before its declaration at 50143:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18802:87 Variable "createSinh" is used before its declaration at 50199:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18803:86 Variable "createTan" is used before its declaration at 50249:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18804:87 Variable "createTanh" is used before its declaration at 50302:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18805:95 Variable "createSetCartesian" is used before its declaration at 50359:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18806:96 Variable "createSetDifference" is used before its declaration at 50425:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18807:94 Variable "createSetDistinct" is used before its declaration at 50506:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18808:95 Variable "createSetIntersect" is used before its declaration at 50571:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18809:94 Variable "createSetIsSubset" is used before its declaration at 50642:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18810:98 Variable "createSetMultiplicity" is used before its declaration at 50712:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18811:94 Variable "createSetPowerset" is used before its declaration at 50774:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18812:90 Variable "createSetSize" is used before its declaration at 50859:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18813:99 Variable "createSetSymDifference" is used before its declaration at 50912:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18814:91 Variable "createSetUnion" is used before its declaration at 50962:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18815:86 Variable "createAdd" is used before its declaration at 51017:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18816:88 Variable "createHypot" is used before its declaration at 51141:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18817:87 Variable "createNorm" is used before its declaration at 51227:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18818:86 Variable "createDot" is used before its declaration at 51547:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18819:88 Variable "createTrace" is used before its declaration at 51724:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18820:88 Variable "createIndex" is used before its declaration at 51862:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18821:87 Variable "createNode" is used before its declaration at 51949:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18822:95 Variable "createAccessorNode" is used before its declaration at 52426:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18823:92 Variable "createArrayNode" is used before its declaration at 52647:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18824:97 Variable "createAssignmentNode" is used before its declaration at 53206:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18825:92 Variable "createBlockNode" is used before its declaration at 53538:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18826:98 Variable "createConditionalNode" is used before its declaration at 53738:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18827:95 Variable "ConstantNode_createConstantNode" is used before its declaration at 54471:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18828:105 Variable "createFunctionAssignmentNode" is used before its declaration at 54676:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18829:92 Variable "createIndexNode" is used before its declaration at 54920:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18830:93 Variable "createObjectNode" is used before its declaration at 55202:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18831:95 Variable "createOperatorNode" is used before its declaration at 55433:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18832:98 Variable "createParenthesisNode" is used before its declaration at 56123:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18833:92 Variable "createRangeNode" is used before its declaration at 56297:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18834:97 Variable "createRelationalNode" is used before its declaration at 56596:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18835:93 Variable "createSymbolNode" is used before its declaration at 56823:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18836:95 Variable "createFunctionNode" is used before its declaration at 57078:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18837:88 Variable "createParse" is used before its declaration at 57588:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18838:90 Variable "createCompile" is used before its declaration at 59384:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18839:91 Variable "createEvaluate" is used before its declaration at 59439:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18840:94 Variable "createParserClass" is used before its declaration at 59502:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18841:89 Variable "createParser" is used before its declaration at 59651:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18842:86 Variable "createLup" is used before its declaration at 59714:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18843:85 Variable "createQr" is used before its declaration at 60129:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18844:86 Variable "createSlu" is used before its declaration at 62163:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18845:90 Variable "createLusolve" is used before its declaration at 62293:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18846:92 Variable "createHelpClass" is used before its declaration at 62418:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18847:93 Variable "createChainClass" is used before its declaration at 62553:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18848:87 Variable "createHelp" is used before its declaration at 65440:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18849:88 Variable "createChain" is used before its declaration at 65507:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18850:86 Variable "createDet" is used before its declaration at 65563:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18851:86 Variable "createInv" is used before its declaration at 65710:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18852:87 Variable "createEigs" is used before its declaration at 67045:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18853:87 Variable "createExpm" is used before its declaration at 67321:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18854:88 Variable "createSqrtm" is used before its declaration at 67487:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18855:89 Variable "createDivide" is used before its declaration at 67592:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18856:91 Variable "createDistance" is used before its declaration at 67672:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18857:92 Variable "createIntersect" is used before its declaration at 68026:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18858:86 Variable "createSum" is used before its declaration at 68261:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18859:87 Variable "createMean" is used before its declaration at 68349:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18860:89 Variable "createMedian" is used before its declaration at 68447:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18861:86 Variable "createMad" is used before its declaration at 68560:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18862:91 Variable "createVariance" is used before its declaration at 68629:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18863:94 Variable "createQuantileSeq" is used before its declaration at 68791:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18864:86 Variable "createStd" is used before its declaration at 69065:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18865:95 Variable "createCombinations" is used before its declaration at 69204:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18866:102 Variable "createCombinationsWithRep" is used before its declaration at 69278:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18867:88 Variable "createGamma" is used before its declaration at 69423:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18868:92 Variable "createFactorial" is used before its declaration at 69552:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18869:95 Variable "createKldivergence" is used before its declaration at 69603:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18870:94 Variable "createMultinomial" is used before its declaration at 69689:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18871:95 Variable "createPermutations" is used before its declaration at 69741:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18872:93 Variable "createPickRandom" is used before its declaration at 69855:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18873:89 Variable "createRandom" is used before its declaration at 70044:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18874:92 Variable "createRandomInt" is used before its declaration at 70163:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18875:93 Variable "createStirlingS2" is used before its declaration at 70244:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18876:94 Variable "createBellNumbers" is used before its declaration at 70308:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18877:90 Variable "createCatalan" is used before its declaration at 70357:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18878:94 Variable "createComposition" is used before its declaration at 70401:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18879:91 Variable "createSimplify" is used before its declaration at 71239:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18880:93 Variable "createDerivative" is used before its declaration at 72059:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18881:94 Variable "createRationalize" is used before its declaration at 72687:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18882:90 Variable "createReviver" is used before its declaration at 73554:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18883:91 Variable "createReplacer" is used before its declaration at 73577:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18884:84 Variable "createE" is used before its declaration at 73644:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18885:93 Variable "createUppercaseE" is used before its declaration at 73695:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18886:88 Variable "createFalse" is used before its declaration at 73618:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18887:84 Variable "createI" is used before its declaration at 73686:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18888:91 Variable "createInfinity" is used before its declaration at 73624:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18889:87 Variable "createLN10" is used before its declaration at 73660:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18890:86 Variable "createLN2" is used before its declaration at 73655:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18891:89 Variable "createLOG10E" is used before its declaration at 73670:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18892:88 Variable "createLOG2E" is used before its declaration at 73665:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18893:86 Variable "createNaN" is used before its declaration at 73629:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18894:87 Variable "createNull" is used before its declaration at 73621:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18895:86 Variable "createPhi" is used before its declaration at 73650:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18896:85 Variable "createPi" is used before its declaration at 73634:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18897:94 Variable "createUppercasePi" is used before its declaration at 73691:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18898:90 Variable "createSQRT1_2" is used before its declaration at 73675:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18899:88 Variable "createSQRT2" is used before its declaration at 73681:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18900:86 Variable "createTau" is used before its declaration at 73639:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18901:87 Variable "createTrue" is used before its declaration at 73615:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18902:90 Variable "createVersion" is used before its declaration at 73699:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18903:93 Variable "createAtomicMass" is used before its declaration at 73748:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18904:91 Variable "createAvogadro" is used before its declaration at 73749:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18905:95 Variable "createBohrMagneton" is used before its declaration at 73724:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18906:93 Variable "createBohrRadius" is used before its declaration at 73733:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18907:92 Variable "createBoltzmann" is used before its declaration at 73750:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18908:106 Variable "createClassicalElectronRadius" is used before its declaration at 73734:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18909:101 Variable "createConductanceQuantum" is used before its declaration at 73725:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18910:90 Variable "createCoulomb" is used before its declaration at 73722:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18911:95 Variable "createDeuteronMass" is used before its declaration at 73740:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18912:95 Variable "createEfimovFactor" is used before its declaration at 73746:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18913:99 Variable "createElectricConstant" is used before its declaration at 73720:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18914:95 Variable "createElectronMass" is used before its declaration at 73735:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18915:99 Variable "createElementaryCharge" is used before its declaration at 73723:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18916:90 Variable "createFaraday" is used before its declaration at 73751:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18917:96 Variable "createFermiCoupling" is used before its declaration at 73736:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18918:96 Variable "createFineStructure" is used before its declaration at 73737:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18919:97 Variable "createFirstRadiation" is used before its declaration at 73752:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18920:94 Variable "createGasConstant" is used before its declaration at 73755:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18921:102 Variable "createGravitationConstant" is used before its declaration at 73715:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18922:90 Variable "createGravity" is used before its declaration at 73765:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18923:96 Variable "createHartreeEnergy" is used before its declaration at 73738:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18924:108 Variable "createInverseConductanceQuantum" is used before its declaration at 73726:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18925:91 Variable "createKlitzing" is used before its declaration at 73729:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18926:92 Variable "createLoschmidt" is used before its declaration at 73754:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18927:99 Variable "createMagneticConstant" is used before its declaration at 73719:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18928:102 Variable "createMagneticFluxQuantum" is used before its declaration at 73727:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18929:92 Variable "createMolarMass" is used before its declaration at 73763:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18930:95 Variable "createMolarMassC12" is used before its declaration at 73764:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18931:102 Variable "createMolarPlanckConstant" is used before its declaration at 73756:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18932:94 Variable "createMolarVolume" is used before its declaration at 73757:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18933:94 Variable "createNeutronMass" is used before its declaration at 73741:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18934:98 Variable "createNuclearMagneton" is used before its declaration at 73728:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18935:95 Variable "createPlanckCharge" is used before its declaration at 73771:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18936:97 Variable "createPlanckConstant" is used before its declaration at 73716:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18937:95 Variable "createPlanckLength" is used before its declaration at 73768:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18938:93 Variable "createPlanckMass" is used before its declaration at 73769:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18939:100 Variable "createPlanckTemperature" is used before its declaration at 73772:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18940:93 Variable "createPlanckTime" is used before its declaration at 73770:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18941:93 Variable "createProtonMass" is used before its declaration at 73739:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18942:103 Variable "createQuantumOfCirculation" is used before its declaration at 73742:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18943:104 Variable "createReducedPlanckConstant" is used before its declaration at 73717:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18944:90 Variable "createRydberg" is used before its declaration at 73743:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18945:96 Variable "createSackurTetrode" is used before its declaration at 73758:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18946:98 Variable "createSecondRadiation" is used before its declaration at 73759:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18947:95 Variable "createSpeedOfLight" is used before its declaration at 73714:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18948:98 Variable "createStefanBoltzmann" is used before its declaration at 73760:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18949:102 Variable "createThomsonCrossSection" is used before its declaration at 73744:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18950:98 Variable "createVacuumImpedance" is used before its declaration at 73721:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18951:98 Variable "createWeakMixingAngle" is used before its declaration at 73745:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18952:99 Variable "createWienDisplacement" is used before its declaration at 73761:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18953:97 Variable "createApplyTransform" is used before its declaration at 73816:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18954:98 Variable "createColumnTransform" is used before its declaration at 73860:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18955:98 Variable "createFilterTransform" is used before its declaration at 73937:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18956:99 Variable "createForEachTransform" is used before its declaration at 74019:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18957:97 Variable "createIndexTransform" is used before its declaration at 74088:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18958:95 Variable "createMapTransform" is used before its declaration at 74143:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18959:95 Variable "createMaxTransform" is used before its declaration at 74248:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18960:96 Variable "createMeanTransform" is used before its declaration at 74288:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18961:95 Variable "createMinTransform" is used before its declaration at 74326:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18962:97 Variable "createRangeTransform" is used before its declaration at 74364:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18963:95 Variable "createRowTransform" is used before its declaration at 74421:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18964:98 Variable "createSubsetTransform" is used before its declaration at 74459:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18965:98 Variable "createConcatTransform" is used before its declaration at 74492:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18966:96 Variable "createDiffTransform" is used before its declaration at 74538:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18967:95 Variable "createStdTransform" is used before its declaration at 74587:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18968:95 Variable "createSumTransform" is used before its declaration at 74625:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:18969:100 Variable "createVarianceTransform" is used before its declaration at 74665:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37987:16 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37992:22 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37993:22 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37996:24 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37996:47 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38008:16 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38013:22 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38014:22 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38017:26 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38017:49 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38035:16 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38040:22 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38041:22 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38044:32 Variable "erf_P" is used before its declaration at 38069:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38044:55 Variable "erf_Q" is used before its declaration at 38076:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:38045:15 Variable "SQRPI" is used before its declaration at 38062:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37958:16 Variable "MAX_NUM" is used before its declaration at 38083:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:37962:16 Variable "THRESH" is used before its declaration at 38056:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:39261:60 Variable "roundNumberSignatures" is used before its declaration at 39346:5.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:44774:15 Variable "UNIT_NONE" is used before its declaration at 46741:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:44775:17 Variable "PREFIXES" is used before its declaration at 45999:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:44781:27 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45494:24 Variable "BASE_UNITS" is used before its declaration at 46656:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45035:17 Variable "_findUnit" is used before its declaration at 45271:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45065:27 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45103:9 Variable "UNIT_SYSTEMS" is used before its declaration at 48145:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45273:31 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45274:18 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45282:23 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45283:33 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45285:23 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45332:14 Variable "BASE_UNITS" is used before its declaration at 46656:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45340:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45359:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45389:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45425:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45463:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45516:29 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45663:21 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45664:33 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45665:25 Variable "BASE_UNITS" is used before its declaration at 46656:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45679:35 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45680:26 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45696:29 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45697:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45700:39 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45702:23 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45703:25 Variable "currentUnitSystem" is used before its declaration at 48296:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45733:25 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45734:21 Variable "BASE_DIMENSIONS" is used before its declaration at 46655:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45737:35 Variable "UNIT_SYSTEMS" is used before its declaration at 48145:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45739:19 Variable "UNIT_SYSTEMS" is used before its declaration at 48145:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45740:21 Variable "UNIT_SYSTEMS" is used before its declaration at 48145:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45846:34 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:45848:34 Variable "UNITS" is used before its declaration at 46750:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:62720:51 Variable "excludedNames" is used before its declaration at 62734:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:68482:16 Variable "middle2" is used before its declaration at 68500:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:68486:16 Variable "middle" is used before its declaration at 68494:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:68973:9 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:68998:7 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:68999:7 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69012:7 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69037:5 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:69038:5 Variable "validate" is used before its declaration at 69051:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:70863:14 Variable "_toNumber" is used before its declaration at 70917:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:70873:14 Variable "_toNumber" is used before its declaration at 70917:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:70858:32 Variable "_toNode" is used before its declaration at 70877:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:71421:9 Variable "_lastsym" is used before its declaration at 71686:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:71428:19 Variable "applyRule" is used before its declaration at 71699:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:72114:7 Variable "constTag" is used before its declaration at 72212:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:72116:17 Variable "_derivative" is used before its declaration at 72263:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:72160:12 Variable "_derivTex" is used before its declaration at 72165:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:73964:12 Variable "filter" is used before its declaration at 73969:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:74045:12 Variable "_forEach" is used before its declaration at 74050:7.
qt.qml.compiler: file:qrc:/qml/res/qml/math.js:74169:12 Variable "map" is used before its declaration at 74174:7.

and finally:

qrc:/qml/res/qml/math.js:4058: TypeError: Type error

This is the context of line 4058:

/***/ }),
/* 58 */
/***/ (function(module, exports, __webpack_require__) {

var DESCRIPTORS = __webpack_require__(21);
var definePropertyModule = __webpack_require__(24);
var createPropertyDescriptor = __webpack_require__(88);

module.exports = DESCRIPTORS ? function (object, key, value) {
  return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); // <-- line 4058
} : function (object, key, value) {
  object[key] = value;
  return object;
};
cshaa commented 2 years ago

The line

import "math943.js" as MathJs

doesn't look like standard ECMAScript to me. Are you sure that the Qt script interpreter is not modified in some non-standard way? Do you have experience with using other webpack'd libraries in Qt? It is possible that Webpack expects some globals which do not exist in the Qt environment.

EDIT: The non-minified math.js doesn't seem to work in a browser either. In Chrome I get:

Uncaught SyntaxError: Invalid or unexpected token (math.js:66354)

However, the minified version from unpkg works fine there.

Elgot commented 2 years ago

The line

import "math943.js" as MathJs

doesn't look like standard ECMAScript to me. Are you sure that the Qt script interpreter is not modified in some non-standard way? Do you have experience with using other webpack'd libraries in Qt? It is possible that Webpack expects some globals which do not exist in the Qt environment.

EDIT: The non-minified math.js doesn't seem to work in a browser either. In Chrome I get:

Uncaught SyntaxError: Invalid or unexpected token (math.js:66354)

However, the minified version from unpkg works fine there.

I don't know if the interpreter is modified (it probably is), but that line did work until version 9.4.4 (and for other libraries).

EDIT: They use that syntax here, so I suppose it is allowed.

josdejong commented 2 years ago

@m93a Qt it's quite a special thing with a "mostly" compatible JavaScript engine... be warned 😉 For reference: #1454