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.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/script/ScriptHandler.java
{
			ScriptableObject.defineClass( scope, clsScriptable );
		}
		catch ( Exception ex )
		{
			throw new ChartException( ChartEnginePlugin.ID,
					ChartException.SCRIPT,
					ex );
		}
		final Context cx = Context.enter( );
		Scriptable soNew = null;
		try
		{
			soNew = cx.newObject( scope, clsScriptable.getName( ), null );
		}
		catch ( JavaScriptException ex )
		{
			throw new ChartException( ChartEnginePlugin.ID,
					ChartException.SCRIPT,
					ex );
		}
		finally
		{
			Context.exit( );
		}
		scope.put( sVarName, scope, soNew );
	}
	/**
	 * Registers a new variable to current JavaScript context. If the name
	 * already exists, it'll be overwritten.