Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
.eval( "function unregisterGlobal(name) { _jsContext.unregisterGlobalBean(name); }" );
		
		applicationClassLoader = new ApplicationClassLoader( );
		scriptContext.getContext( ).setApplicationClassLoader(
				applicationClassLoader );
		
	}
	protected void initailizeScriptContext( Context cx, Scriptable scope )
	{
		scriptContext.getContext( ).setWrapFactory( new WrapFactory( ) {
			protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper( );
			/**
			 * wrapper an java object to javascript object.
			 */
			public Object wrap( Context cx, Scriptable scope, Object obj,
					Class staticType )
			{
				Object object = coreWrapper.wrap( cx, scope, obj, staticType );
				if ( object != obj )
				{
					return object;
				}
				return super.wrap( cx, scope, obj, staticType );
			}
		} );
		new CoreJavaScriptInitializer( ).initialize( cx, scope );
	}
	/**
	 * get the report engine. In that engine, we create the context.
	 *