Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 9b589e61c3dc12cb445f5adcc6b09c5512722f6d..9d57076affc7de8e7d31fd85be7a97774b0946e5 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -3373,8 +3373,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()) { |
__ ldr(r2, GlobalObjectOperand()); |
__ mov(r1, Operand(var->name())); |