Skip to content

Commit

Permalink
Compiler update: HumboldtJS 0.9.7
Browse files Browse the repository at this point in the history
------------------------------------------------
Added option to produce a clean build in debug mode (ignoring previous JS files)
Added a fix for potential name conflicts in generated class hashes in optimise mode
__humboldtjs renamed to __hjs to generate more compact code
"include" statements are excluded in non-debug (single-file) mode, this is not needed since all dependencies are already loaded (part of the file) and saves a ton of generated JS
Instance members are initialised in the meta-constructor, which means they work even if you don't have an actual constructor in the AS
Class and method registration is moved to language features to reduce redundant code
Registered (regm) functions are now named (in debug mode) so debugging should be easier
When initialising a class we're now referencing a temp var instead of the full namespace which yields a huge file-size saving
Fixed a bug related to string comparison not using .equals
Added the ability to include pure JS in AS3 by wrapping it in /*--{ and }--*/ everything between such comments will be ignored and embedded as straight JS. This is useful for e.g. wrapping existing JS code bases or doing certain low-level things (e.g. modifying the prototype) which may result in errors when done through AS3
Binding methods to classes or instances now uses native binding in JS if supported by the browser which results in faster execution and easier debugging when stepping through code
  • Loading branch information
humboldtjs committed Dec 20, 2013
1 parent cf7c254 commit d57235f
Showing 1 changed file with 0 additions and 0 deletions.
Binary file modified build/humboldtjs.jar
Binary file not shown.

0 comments on commit d57235f

Please sign in to comment.