Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.574 kB
using System;
namespace IronJS.Runtime
public abstract class ValueObject : CommonObject
public Descriptor Value;
public ValueObject(Environment env, Schema map, CommonObject prototype)
: base(env, map, prototype)
public static BoxedValue GetValue(CommonObject o)
var vo = o as ValueObject;
if (vo == null)
return o.Env.RaiseTypeError<BoxedValue>("Cannot read the value of a non-value object.");
return vo.Value.Value;
Jump to Line
Something went wrong with that request. Please try again.