Bug 375600 Misspelled constant name: IScriptFunctionContext.FUNCITON_BEAN_NAME
Build Identifier: In BIRT 3.7.2 IScriptFunctionContext has a constant called FUNCITON_BEAN_NAME. It should be renamed to FUNCTION_BEAN_NAME and the current name deprecated. Reproducible: Always Steps to Reproduce: View JavaDoc for IScriptFunctionContext.
data/org.eclipse.birt.report.engine.script.javascript/src/org/eclipse/birt/report/engine/javascript/JavascriptEngine.java
JavascriptContext parentJsContext = (JavascriptContext) parent
					.getScriptContext( JavascriptEngineFactory.SCRIPT_JAVASCRIPT );
			if ( parentJsContext == null )
			{
				parentJsContext = createJsContext( parent );
			}
			parentJsScope = parentJsContext.getScope( );
		}
		Object scope = context.getScopeObject( );
		Scriptable jsScope = createJsScope( parentJsScope, scope );
		JavascriptContext jsContext = new JavascriptContext( context,
				jsScope );
		
		if ( parent == null )
		{
			cachedScript.exec( this.context, jsScope );
		}
		Map<String, Object> attrs = context.getAttributes( );
		for ( Entry<String, Object> entry : attrs.entrySet( ) )
		{
			jsContext.setAttribute( entry.getKey( ), entry.getValue( ) );
		}
		context.setScriptContext( JavascriptEngineFactory.SCRIPT_JAVASCRIPT,
				jsContext );
		return jsContext;
	}
	public Object evaluate( ScriptContext scriptContext,
			ICompiledScript compiledScript ) throws BirtException
	{
		assert ( compiledScript instanceof CompiledJavascript );