Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 0ef654a5d10e7706bca6f15208e02edee26f41c0..c0251c54e92f9672d37ef38c711288db407ad5ce 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -3914,11 +3914,14 @@ static MaybeObject* Runtime_IgnoreAttributesAndSetProperty(Arguments args) { |
static MaybeObject* Runtime_DeleteProperty(Arguments args) { |
NoHandleAllocation ha; |
- ASSERT(args.length() == 2); |
+ ASSERT(args.length() == 3); |
CONVERT_CHECKED(JSObject, object, args[0]); |
CONVERT_CHECKED(String, key, args[1]); |
- return object->DeleteProperty(key, JSObject::NORMAL_DELETION); |
+ CONVERT_SMI_CHECKED(strict, args[2]); |
+ return object->DeleteProperty(key, strict == kStrictMode |
+ ? JSObject::STRICT_DELETION |
+ : JSObject::NORMAL_DELETION); |
} |