avoid extends error in test cases (#5443)
This commit is contained in:
@@ -1805,7 +1805,7 @@ function createClassLiteral(recurmax, stmtDepth, canThrow, name) {
|
|||||||
if (canThrow && rng(20) == 0) {
|
if (canThrow && rng(20) == 0) {
|
||||||
s += p;
|
s += p;
|
||||||
} else {
|
} else {
|
||||||
s += "(" + p + " && " + p + ".constructor === Function ? " + p + " : function() {})";
|
s += "(typeof " + p + ' == "function" && typeof ' + p + '.prototype == "object" ? ' + p + " : function() {})";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s += " {\n";
|
s += " {\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user