On Thu, 19 Nov 2009, Maciej Stachowiak wrote:
ECMAScript defines a ToPrimitive conversion (Section 9.1 of ECMA-262 5th
edition). I think the right thing to do would be for some spec to point
to those steps. Probably it has to be Web Database, because in many
cases where a Web IDL method
Hi everyone.
Neither the web database specification, nor the IDL, specify the fine
grained handling that implementation must do of the several possible
values that can be passed in the 2nd argument to executeSql, considering
that those ecmascript values need to be handled by the SQL
On Nov 19, 2009, at 2:12 PM, João Eiras wrote:
Hi everyone.
Neither the web database specification, nor the IDL, specify the
fine grained handling that implementation must do of the several
possible values that can be passed in the 2nd argument to
executeSql, considering that those
2) We can define, in the Web IDL, how an object can be converted to a
primitive type.
Specifically, in an ecmascript binding we can do the following (note:
returns means to stop the steps):
- if object is null, return null
- if object has a member function called valueOf, invoke valueOf in