Hi Carlos, Use of "is" is transpiled into a call to Language.is. I think Language.is should special case the test for Class. Try updating Language.is and see if that is what you need.
-Alex On 10/5/18, 11:13 AM, "Carlos Rovira" <[email protected]> wrote: Hi, in js, check if something is a class or is an instance is like this [1] typeof myFunc === 'function' In Royale since we are using AS3, doing if(something is Class) do this else do that should work either for SWF and for JS, but seems is not the case. I must make two codes COMPILE::SWF (with "is Class") and COMPILE::JS (with typeof ... ==='function') Could we have this abstracted by compiler? Thanks [1] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F405164%2Fbest-method-of-testing-for-a-function-in-javascript&data=02%7C01%7Caharui%40adobe.com%7Ca4d898cf20fe4f072a9008d62aee4d24%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636743600312034959&sdata=fdiolpGWQJihoZw2PfYLmoyckh1mDiynH8EbJXYIeog%3D&reserved=0 -- Carlos Rovira https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Ca4d898cf20fe4f072a9008d62aee4d24%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636743600312034959&sdata=bwLXrUQ6N4syATPB8iEXL%2BnFZPQl9xhIndqwNbCShCo%3D&reserved=0
