Re: [FalconJX] compiling non-browser javascript

2016-05-02 Thread Harbs
OK. Looks like that’s correct. I just did a quick test: function doSomething(in){ alert(in); } and Chrome flagged the function parameter as an unexpected token. I was having a hard time figuring out what an “Identifier” in ECMAScript is, but at the very least, Chrome considers it illegal. Tha

Re: [FalconJX] compiling non-browser javascript

2016-05-01 Thread Josh Tynjala
I'll double check the ECMAScript spec to see if reserved words are allowed as function parameters. It's only in very specific places where they began to be allowed in ES5. This may not be one of those places. If my memory serves, I suspect it isn't one of those places, and Falcon is behaving correc

Re: [FalconJX] compiling non-browser javascript

2016-05-01 Thread Alex Harui
We've recently made changes to allow keywords in more places. I personally don't enjoy doing that work, but maybe Josh will. -Alex On 5/1/16, 12:34 PM, "Harbs" wrote: >I get the same error for other reserved words: >in, >include, >with, >etc… > >On May 1, 2016, at 10:28 PM, Harbs wrote: > >>

Re: [FalconJX] compiling non-browser javascript

2016-05-01 Thread Harbs
I get the same error for other reserved words: in, include, with, etc… On May 1, 2016, at 10:28 PM, Harbs wrote: > I manually deleted most of the core classes to get it to compile. > > I’m now getting an error which I don’t know if it’s valid or a bug in Falcon: > > public functi

Re: [FalconJX] compiling non-browser javascript

2016-05-01 Thread Harbs
I manually deleted most of the core classes to get it to compile. I’m now getting an error which I don’t know if it’s valid or a bug in Falcon: public function findKeyStrings(for:String):String{return null;} public function translateKeyString(for:String):String{ret

Re: [FalconJX] compiling non-browser javascript

2016-05-01 Thread Harbs
Here’s my stab at producing ActionScript files from the OMV files: https://github.com/unhurdle/omv2as The output is actually pretty good. I get error-free output on InDesign files with the exception of File types because I don’t yet have the core types linked. Photoshop output is not as good, f

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Harbs
I was guessing that the release would probably work. I am concerned about debugging though. I will probably try this suggestion next week and see how far I can get without further help. Chances are I’ll be back here before I’m successful though… ;-) Thanks! Harbs On Apr 25, 2016, at 6:27 PM, A

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Alex Harui
On 4/25/16, 8:16 AM, "Josh Tynjala" wrote: >In the bin/js-release directory, all of the generated JavaScript is >concatenated into a single file, so it no longer uses goog.require(). That >should work in environments that cannot load multiple scripts. I was about to suggest that as well. By d

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Josh Tynjala
In the bin/js-release directory, all of the generated JavaScript is concatenated into a single file, so it no longer uses goog.require(). That should work in environments that cannot load multiple scripts. - Josh On Mon, Apr 25, 2016 at 12:35 AM, Harbs wrote: > I would really like to use Falcon

[FalconJX] compiling non-browser javascript

2016-04-25 Thread Harbs
I would really like to use FalconJX for ExtendScript development. ExtendScript is Adobe’s flavor of Javascript used in their creative apps. They have an old version of SpiderMonkey as the underlying engine (which still had E4X support). I have some really complex scripts and currently the single