comparison Jint.Runtime/JsObject.cs @ 0:e113095f1de0

initial commit, proof of concept
author cin
date Wed, 23 Oct 2013 13:24:57 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e113095f1de0
1 using System;
2 using System.Collections.Generic;
3
4
5 namespace Jint.Runtime
6 {
7 public class JsObject
8 {
9 ClassDescriptor m_classDescriptor;
10 List<object> m_data;
11
12 public JsObject ()
13 {
14 }
15
16 public object Get (string name)
17 {
18 PropertyDescriptor descriptor;
19 if (m_classDescriptor.TryGet (name, out descriptor))
20 return m_data.Count <= descriptor.index ? null : m_data [descriptor.index];
21 else
22 return null;
23 }
24 }
25 }
26