Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index fa56f8ce0737133d766addd688400e3f4bb1c6dd..a9825cf40022b59790224aa19775d5b595b772ec 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1643,10 +1643,8 @@ void AstGraphBuilder::VisitClassLiteralContents(ClassLiteral* expr) { |
// freeze them in strong mode. |
environment()->Pop(); // proto |
environment()->Pop(); // literal |
- const Operator* op = javascript()->CallRuntime( |
- is_strong(language_mode()) ? Runtime::kFinalizeClassDefinitionStrong |
- : Runtime::kFinalizeClassDefinition, |
- 2); |
+ const Operator* op = |
+ javascript()->CallRuntime(Runtime::kFinalizeClassDefinition, 2); |
literal = NewNode(op, literal, proto); |
// Assign to class variable. |