Index: Source/bindings/scripts/code_generator_v8.pm |
diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm |
index a0a5565bfee9821123c4808b9a22969be0671c31..69dc36afe6d5348f0c80144da570d994afb6b8ab 100644 |
--- a/Source/bindings/scripts/code_generator_v8.pm |
+++ b/Source/bindings/scripts/code_generator_v8.pm |
@@ -4049,12 +4049,13 @@ sub GenerateImplementationIndexedPropertyDeleter |
$code .= " ExceptionState exceptionState(info.Holder(), info.GetIsolate());\n"; |
$extraArguments = ", exceptionState"; |
} |
- $code .= " bool result = collection->${methodName}(index$extraArguments);\n"; |
+ $code .= " DeleteResult result = collection->${methodName}(index$extraArguments);\n"; |
if ($raisesExceptions) { |
$code .= " if (exceptionState.throwIfNeeded())\n"; |
$code .= " return;\n"; |
} |
- $code .= " return v8SetReturnValueBool(info, result);\n"; |
+ $code .= " if (result != DeleteUnknownProperty)\n"; |
+ $code .= " return v8SetReturnValueBool(info, result == DeleteSuccess);\n"; |
$code .= "}\n\n"; |
$implementation{nameSpaceInternal}->add($code); |
} |
@@ -4076,14 +4077,15 @@ sub GenerateImplementationNamedPropertyDeleter |
my $extraArguments = ""; |
if ($raisesExceptions) { |
$code .= " ExceptionState exceptionState(info.Holder(), info.GetIsolate());\n"; |
- $extraArguments = ", exceptionState"; |
+ $extraArguments .= ", exceptionState"; |
} |
- $code .= " bool result = collection->${methodName}(propertyName$extraArguments);\n"; |
+ $code .= " DeleteResult result = collection->${methodName}(propertyName$extraArguments);\n"; |
if ($raisesExceptions) { |
$code .= " if (exceptionState.throwIfNeeded())\n"; |
$code .= " return;\n"; |
} |
- $code .= " return v8SetReturnValueBool(info, result);\n"; |
+ $code .= " if (result != DeleteUnknownProperty)\n"; |
+ $code .= " return v8SetReturnValueBool(info, result == DeleteSuccess);\n"; |
jsbell
2013/12/18 00:49:34
Sorry if I'm missing something, but doesn't this i
sof
2013/12/18 06:17:00
Yes, exactly that.
The v8 interceptor code that's
|
$code .= "}\n\n"; |
$implementation{nameSpaceInternal}->add($code); |
} |