EcmaScript 262 in D-lang
This is a D2 port of the dmdscript the job was stated by Dmitry Olshansky, but this git branch is completely independent because code has restructure to fit more in to the D2 style and to port javasctipt 5.1.
The code has also be change to fit both both 32 and 64bits.
The goal is to upgrade to the dmdscript to javascript 5.1. The indention of this project is not to compete against node.js on performance but to be able to run javascript on top of D.
Most of the new functions and features in javascript 5.1 Like Array.forEach, Object.defineProperty, setter and getters
Linux
cd PathToDmdscript
make all
To run the examples
make run
You can find examples in ./samples
If you want to use a specific D2 compiler you can write. make DC=gdmd run
You can run the Ecma262 testcases if check out https://github.com/tc39/test262.git
cd PathToDmdscript
git clone https://github.com/tc39/test262.git
make test262
The will run a long list of tests and you can find the result in test262_extended.log
This takes a while so if you only want to look run a group of test you can write
make SUBTEST=test/built-ins/Object/ test262
See LICENSE.txt