Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index d32e9aa87732c40716de28fbb8ec0e154ac614bc..998f5ac1dbc068ca52660a143fb2f1f2d97e0533 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3743,8 +3743,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
} |
} else if (var != NULL) { |
// Delete of an unqualified identifier is disallowed in strict mode |
- // so this code can only be reached in non-strict mode. |
- ASSERT(strict_mode_flag() == kNonStrictMode); |
+ // (but "delete this" is). |
+ ASSERT(strict_mode_flag() == kNonStrictMode || var->is_this()); |
if (var->is_global()) { |
__ push(GlobalObjectOperand()); |
__ push(Immediate(var->name())); |