This project has moved and is read-only. For the latest updates, please go here.

Supported types

Because of the dynamic nature of JavaScript Jurassic exposes many APIs with method parameters of type System.Object. However, Jurassic supports only a limited subset of the .NET type system. Attempting to use an unsupported type in a Jurassic API may have unintended effects.

The supported types are as follows:

C# type name .NET type name JavaScript type name
bool System.Boolean boolean
int System.Int32 number
double System.Double number
string System.String string
Jurassic.Null Jurassic.Null null
Jurassic.Undefined Jurassic.Undefined undefined
Jurassic.Library.ObjectInstance (or a derived type) Jurassic.Library.ObjectInstance (or a derived type) object

Last edited Dec 5, 2010 at 12:18 PM by paulbartrum, version 9


ToasEmperor Dec 3, 2015 at 3:47 AM 
what about void
when using PopulateFunctions() it only works with these supported types.
I have to set the return type to int when i want to make a function that doesn't need to return anything.

FlorianRappl Sep 1, 2013 at 7:50 PM 
The params object[] should probably be mentioned.