ES6 Arrow Methods vs Code Profiler?

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
davmillar
Posts: 23
Joined: Thu Jan 30, 2014 1:22 am

ES6 Arrow Methods vs Code Profiler?

Post by davmillar » Thu Jan 04, 2018 1:41 am

Does the code profiling utility support ES6 arrow functions? It seems to not, as I'm getting a warning at the position of my first arrow function:

Instrumentation of the file failed: app/view/{foobar}.js, error: SyntaxError: Unexpected token (69:49)

Code: Select all

        Ext.Object.each(me.icons, (key, config) => {
            // foo bar
        });
We're venturing into this brave new world of Sencha Cmd transpiling ES6 to ES5 in our ExtJS app build and we hope you can help us keep up code coverage through the process.

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by nickolay » Fri Jan 05, 2018 10:24 am

No, unfortunately ES6 syntax is not supported yet.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
davmillar
Posts: 23
Joined: Thu Jan 30, 2014 1:22 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by davmillar » Sat Jan 06, 2018 12:14 am

Would you add it for a Scooby Snack?

Image

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by nickolay » Mon Jan 08, 2018 10:43 am

Aha-ha :) I was planning to do it anyway, but now that you suggested :) Realistically its Q2 though.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
krullj
Posts: 24
Joined: Thu Oct 16, 2014 5:00 pm

Re: ES6 Arrow Methods vs Code Profiler?

Post by krullj » Wed Jun 06, 2018 2:41 am

How soon in Q2? We'd like to be able to turn code coverage back on in our release pipeline as soon as possible.

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by nickolay » Wed Jun 06, 2018 8:51 am

Well, its 5.1 the soonest. 5.0 scheduled for June.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by nickolay » Wed Jun 06, 2018 9:46 am

Sorry for the inconvenience, the coverage rewrite requires some internals refactoring, and thats not easy with preserving backward-compatibility, considering how many features Siesta supports. The first step will be 5.0 release, which turns Siesta into regular `npm` package, then we continue from that.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
nickolay
Core Developer
Core Developer
Posts: 3329
Joined: Mon May 16, 2011 10:48 am

Re: ES6 Arrow Methods vs Code Profiler?

Post by nickolay » Mon Oct 01, 2018 8:39 pm

Just released Siesta 5.1.0 with completely new coverage module, running on "stock" latest Istanbul, supporting the arrow functions and other ES6 features.
We offer training in both Ext JS and our products, read more here.
Read the API documentation

Post Reply