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