Skip to content

TypeError: console.warn is not a function (ExecJS::ProgramError) #38

@heaven

Description

@heaven

When optimizing a CSS file.

And csso.js contains this line:

case null:console.warn("[csstree-match] BREAK after "+os+" iterations")

The warn function is missing here:

console = {
  log: function(){},
  error: function(txt){
    throw txt;
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions