Let frozen peas thaw in a bowl of cold water for ~20 min. Drain the peas.
Heat olive oil in a skillet over medium heat. Stir in onion and garlic; cook about 5 minutes. Add peas, and stir in stock. Season with salt and pepper. Cook a few minutes until peas are heated through. (They will get mushy if you cook them too long)