Giter Club home page Giter Club logo

jurassic's Introduction

Jurassic

Build status

What is Jurassic?

Jurassic is an implementation of the ECMAScript language and runtime. It aims to provide the best performing and most standards-compliant implementation of JavaScript for .NET. Jurassic is not intended for end-users; instead it is intended to be integrated into .NET programs. If you are the author of a .NET program, you can use Jurassic to compile and execute JavaScript code.

Features

  • Supports all ECMAScript 3 and ECMAScript 5 functionality, including ES5 strict mode
  • Well tested - passes over five thousand unit tests (with over thirty thousand asserts)
  • Simple yet powerful API
  • Compiles JavaScript into .NET bytecode (CIL); not an interpreter
  • Deployed as a single .NET assembly (no native code)
  • Basic support for integrated debugging within Visual Studio
  • Uses light-weight code generation, so generated code is fully garbage collected
  • Tested on .NET 3.5, .NET 4 and Silverlight

How do I get it?

Install the NuGet package.

Usage

See the wiki for full usage details.

ECMAScript 6 status

Support for ECMAScript 6 is in progress. See http://kangax.github.io/compat-table/es6/ for the definition of each feature.

Feature Status
Optimisation
  proper tail calls (tail call optimisation)
Syntax
  default function parameters
  rest parameters
  spread (...) operator
  object literal extensions
  for..of loops 4/9
  octal and binary literals ✅ 4/4
  template literals 2/5
  RegExp "y" and "u" flags
  destructuring, declarations
  destructuring, assignment
  destructuring, parameters
  Unicode code point escapes ✅ 2/2
  new.target
Bindings
  const 2/16
  let 1/12
  block-level function declaration[13]
Functions
  arrow functions
  class
  super
  generators
Built-ins
  typed arrays 44/46
  Map 17/19
  Set 17/19
  WeakMap 10/12
  WeakSet 9/11
  Proxy[18]
  Reflect[20]
  Promise
  Symbol 5/11
  well-known symbols[21] 5/26
Built-in extensions
  Object static methods 3/4
  function "name" property 5/17
  String static methods ✅ 2/2
  String.prototype methods ✅ 10/10
  RegExp.prototype properties 2/6
  Array static methods 1/11
  Array.prototype methods 9/10
  Number properties ✅ 7/7
  Math methods ✅ 17/17
  Date.prototype[Symbol.toPrimitive] ✅ 1/1
Subclassing
  Array is subclassable
  RegExp is subclassable
  Function is subclassable
  Promise is subclassable
  miscellaneous subclassables
Misc
  prototype of bound functions
  Proxy, internal 'get' calls
  Proxy, internal 'set' calls
  Proxy, internal 'defineProperty' calls
  Proxy, internal 'deleteProperty' calls
  Proxy, internal 'getOwnPropertyDescriptor' calls
  Proxy, internal 'ownKeys' calls
  Object static methods accept primitives 7/10
  own property order 2/7
  miscellaneous 6/10
Annex b
  non-strict function semantics[29] 2/3
  __proto__ in object literals[30]
  Object.prototype.__proto__ 1/6
  String.prototype HTML methods ✅ 3/3
  RegExp.prototype.compile ✅ 1/1
  RegExp syntax extensions 4/8
  HTML-style comments

jurassic's People

Contributors

kpreisser avatar miroslav22 avatar paulbartrum avatar robpaveza avatar sjroche avatar taritsyn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.