The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.007

  • Alpha release. New features/fixes:
  • Added the RegExp constructor and RegExp.prototype.exec
  • Added the rest of the string methods
  • Added the Boolean, Number and ReferenceError classes
  • Added the Math object
  • Fixed 'return' without an argument, so it returns undefined, rather than a null Perl string (which was causing weird errors elsewhere).
  • 'break' called from within a labelled statement was produc- ing warnings (fixed)
  • 'throw' without an argument now throws undefined, rather than 'Died at /usr/local/lib/perl5/5.8.8/JE/Code.pm line 387'
  • 'continue' now works with a do-while loop
  • instanceof now works instead of just dying
  • Assigning to a writeable property used to overwrite the dontenum attribute and make the property enumerable (fixed)
  • Fixed lvalues such that 'null.var = val' no longer creates a global property. 'null.var' in void context now throws a TypeError.
  • Fixed the null and undefined classes, so they don't try to rebless the same scalar as each other.
  • Fixed the boolean class's to_string method, so it no longer gives 'true' for false and 'false' for true (!).

Documentation

JavaScript types and objects

Modules

JE
Pure-Perl ECMAScript (JavaScript) Engine
JavaScript boolean value
ECMAScript parser and code executor for JE
JavaScript lvalue class
JavaScript null value
JavaScript number value
Base class for all JavaScript objects
JavaScript Array object class
JavaScript Boolean object class
JavaScript Error object class
JavaScript RangeError object class
JavaScript ReferenceError object class
JavaScript SyntaxError object class
JavaScript TypeError object class
JavaScript URIError object class
JavaScript function class
JavaScript Math object
JavaScript Number object class
JavaScript regular expression (RegExp object) class
JavaScript String object class
JavaScript scope chain (what makes closures work)
JavaScript string value
JavaScript undefined value
Pure-Perl ECMAScript (JavaScript) engine

Provides

in lib/JE/Code.pm
in lib/JE/Code.pm
in lib/JE/Code/Grammar.pm
in lib/JE/Code.pm
in lib/JE/Code.pm
in lib/JE/Object/Function.pm
in lib/JE/Object/Function.pm