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