diff --git a/AppKit/CoreGraphics/CGContext.j b/AppKit/CoreGraphics/CGContext.j index 883ef2241..e749a75ce 100644 --- a/AppKit/CoreGraphics/CGContext.j +++ b/AppKit/CoreGraphics/CGContext.j @@ -711,6 +711,11 @@ else if (CPFeatureIsCompatible(CPVMLFeature)) { #include "CGContextVML.j" } +else +{ + // I have declared these functions here to make it compile without warnings with the new compiler under rhino. + CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = function() {throw new Error("function is not declared in this environment")} +} /*! @endcond */