FIX: working also on SpiderMonkey < 1.8.0