[PATCH v4 1/9] jscript: Store the necessary function and variable info in the TypeInfo.