Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 11b07d770a213d570114c54021ef9b5d8e135b53..787f705a0fd22c6fec991e1eefd62a9284e7d93b 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3075,8 +3075,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(var->name()); |