endel/js2php

Please add support for ES6 Immediately-invoked function

lawlietmester opened this issue · 3 comments

Please add support for ES6 Immediately-invoked function:

( () => {
  // some code here
})();
2pha commented

How would that work? PHP does not have IIFE

call_user_func( function(){

});

endel commented

Hi @lawlietmester, sorry the delay to answer. For some reason, I wasn't receiving email updates about this repository.

Version 0.1.3 now supports IIFE's as you suggested.

Check the fixture: