兼容Mozilla-SpiderMonkey-parseAPI: nodeName更名为type