Do not attempt evaluating class expressions

Broadly the same as function expressions - these actually are statements but
we're limited by the inheritance tree.

Fixes #1044
This commit is contained in:
Richard van Velzen
2016-04-19 20:01:26 +02:00
parent 68cc14f846
commit 8571a08a93
2 changed files with 12 additions and 0 deletions

View File

@@ -977,6 +977,9 @@ merge(Compressor.prototype, {
def(AST_Arrow, function() {
throw def;
});
def(AST_Class, function() {
throw def;
});
function ev(node, compressor) {
if (!compressor) throw new Error("Compressor must be passed");