Beispiel #1
0
 internal static void PopContext()
 {
     if (CurrentContext is JSGlobalContext)
     {
         CurrentGlobalContext = GlobalContextStack.Pop();
     }
     CurrentContext = ContextStack.Pop();
 }
Beispiel #2
0
 internal static void PushContext(JSContext Context)
 {
     if (Context is JSGlobalContext)
     {
         GlobalContextStack.Push(CurrentGlobalContext);
         CurrentGlobalContext = (JSGlobalContext)Context;
     }
     ContextStack.Push(CurrentContext);
     CurrentContext = Context;
 }
Beispiel #3
0
 internal static void PushContext(JSContext Context)
 {
     if (Context is JSGlobalContext)
     {
         GlobalContextStack.Push(CurrentGlobalContext);
         CurrentGlobalContext = (JSGlobalContext) Context;
     }
     ContextStack.Push(CurrentContext);
     CurrentContext = Context;
 }
Beispiel #4
0
 internal static void PopContext()
 {
     if (CurrentContext is JSGlobalContext)
     {
         CurrentGlobalContext = GlobalContextStack.Pop();
     }
     CurrentContext = ContextStack.Pop();
 }