#1 2018-02-13 03:36:48

ComingNine
Member
Registered: 2010-07-29
Posts: 293

Complaining invalid arrow-function arguments in latest source.

With the latest mORMot & SyNode, the sample "02 - Binding" raises exception of "invalid arrow-function arguments (parentheses around the arrow-function may help)" during startup. Could you help to fix it ?

Offline

#2 2018-02-13 09:45:48

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,076
Website

Re: Complaining invalid arrow-function arguments in latest source.

I can't reproduce this (Tested on Win XE2 x32 SM52). What OS/compiler/SpiderMonkey version you use?

Offline

#3 2018-02-13 12:16:04

ComingNine
Member
Registered: 2010-07-29
Posts: 293

Re: Complaining invalid arrow-function arguments in latest source.

The exception is seen with Win XE8/XE Tokyo, x32, SM45.

When SM52 is defined, the exception is not seen. Many thanks for your instructive test. Nevertheless, could you help to comment whether SM45 is deprecated in your company ?

Offline

#4 2018-02-13 15:31:02

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,076
Website

Re: Complaining invalid arrow-function arguments in latest source.

I see the regression - it's inside a nodejs modules (core_modules folders) - arrow functions are used inside and SM45 not support it. So, my suggestion is to migrate to SM52. In any case all new JS libraries are use a ES6 syntax (not supported by SM45)...

In my company new projects we start with SM52 (mORMot trunk/SM52/XE2/win32). Old projects still use version 1.18.3488 of mORMot (mORMot 3488/SM45/XE2/win32).

But we plane to start migration of all our projects to SM52 + FPC3.11 + Linux x64 / Win64 in the beginning on March - almost all in mORMot/Synode are ready for this (SyNode for FPC currently in brunch fb_SyNode_fpc311)

Last edited by mpv (2018-02-13 15:32:01)

Offline

#5 2018-02-13 17:40:17

ComingNine
Member
Registered: 2010-07-29
Posts: 293

Re: Complaining invalid arrow-function arguments in latest source.

Thank you very much for your helpful suggestions and comments !

PS: SM52 + Linux sounds quite interesting ! Great contributions from you !

Offline

#6 2018-08-04 17:46:59

robertjohnson
Member
From: USA
Registered: 2018-08-04
Posts: 1
Website

Re: Complaining invalid arrow-function arguments in latest source.

Thank you for the notification! I really value your intention to help us! Hope you'll find rights thesis informative and essential!

Offline

Board footer

Powered by FluxBB