The Error type

Brendan Eich brendan at
Fri Aug 17 07:11:39 PDT 2012

David Bruant wrote:
> Could what I just described implemented with "value proxies"? I'm not 
> very familiar with the proposal. 

See and -- and probably 
more from Cormac and Tim that I don't have at hand right now. Lots of 
applications, no hardcoding for just "error handling".

An idea I first heard from Dave Herman: make an undefined proxy that 
tracks its origin (source coordinates, stack backtrace) and return it 
instead of the one true undefined value, so you can find where that 
missing property was dereferenced.


More information about the es-discuss mailing list