Beispiel #1
0
 public static JsValue JsToString(LexicalEnvironment env)
 {
     return(new JsString("function () { [native code] }"));
 }
Beispiel #2
0
 public JsNativeFunction(Func <LexicalEnvironment, JsValue> action, string name, LexicalEnvironment lexEnvironment) : base(lexEnvironment)
 {
     _action = action;
     SetProperty("name", new JsString(name));
 }
Beispiel #3
0
 protected override JsValue CallInternal(LexicalEnvironment env)
 {
     return(_action(env));
 }
Beispiel #4
0
 public LexicalEnvironment(LexicalEnvironment parent, bool isNewCall = false)
 {
     _parent     = parent;
     IsNewCall   = isNewCall;
     GlobalScope = parent.GlobalScope;
 }