Added JavaScript boolean to type that can be converted to
ObjC scalar parameters.
Reviewed by Ken Kocienda.
* bindings/objc/objc_utility.mm:
(KJS::Bindings::convertValueToObjcValue):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8896
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-03-15 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/4053276> WebScripting protocol in WebKit cannot convert Boolean in Javascript to BOOL in Objective-C
+
+ Added JavaScript boolean to type that can be converted to
+ ObjC scalar parameters.
+
+ Reviewed by Ken Kocienda.
+
+ * bindings/objc/objc_utility.mm:
+ (KJS::Bindings::convertValueToObjcValue):
+
=== Safari-406 ===
=== Safari-405 ===
ObjcValue result;
double d = 0;
- if (value.type() == NumberType || value.type() == StringType)
+ if (value.type() == NumberType || value.type() == StringType || value.type() == BooleanType)
d = value.toNumber(exec);
switch (type){