URLs / subclassing JavaScript

Domenic Denicola domenic at domenicdenicola.com
Mon Dec 17 07:17:09 PST 2012

From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Anne van Kesteren [annevk at annevk.nl]
Sent: Monday, December 17, 2012 09:56

> By types I mean e.g. constraining set() to just accept strings.

I think the "JavaScript-y" way of doing this, as exemplified in the ES5 spec's built-in functions, is to do a ToString() abstract operation on the input.

More information about the es-discuss mailing list