diff --git a/src/core/colorspace.js b/src/core/colorspace.js index bf92d10e5..05860ab7b 100644 --- a/src/core/colorspace.js +++ b/src/core/colorspace.js @@ -201,10 +201,7 @@ var ColorSpace = (function ColorSpaceClosure() { }; ColorSpace.parse = function ColorSpace_parse(cs, xref, res) { - var IR = ColorSpace.parseToIR(cs, xref, res); - if (IR instanceof AlternateCS) { - return IR; - } + let IR = ColorSpace.parseToIR(cs, xref, res); return ColorSpace.fromIR(IR); };