- From: Daniel Ehrenberg <notifications@github.com>
- Date: Thu, 06 Dec 2018 08:48:04 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 6 December 2018 16:48:25 UTC
Well, the first built-in method proposed (not yet shipped anywhere AFAIK) is tc39/ecma402#236 which works like operators like `*` and calls ToNumeric on the argument (which will convert a string to Number, or `{valueOf(){return 5n}}` to `5n`), then checks whether it's Number or BigInt. That's what I was suggesting in https://github.com/heycam/webidl/pull/525#issuecomment-444073662 , but if these semantics seem terrible, we could go with something more restrictive since AFAIK no overloaded methods have shipped, just overloaded operators (which have more legacy constraints). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/525#issuecomment-444942505
Received on Thursday, 6 December 2018 16:48:25 UTC