Ejemplo n.º 1
0
	// Report a syntax error at the current token, and start error recovery.
	private void SyntaxError(Context tokenInfo, String msg)
			{
				++numErrors;
				JScriptException e = new JScriptException
					(JSError.SyntaxError, tokenInfo.MakeCopy());
				e.message = msg;
				if(context.codebase != null && context.codebase.site != null)
				{
					if(context.codebase.site.OnCompilerError(e))
					{
						// The site wants us to perform error recovery.
						throw new ErrorRecovery(e);
					}
				}
				throw e;
			}