Skip to content

Instantly share code, notes, and snippets.

/gist:338559

Created Mar 20, 2010
Embed
What would you like to do?
Typo
In http://dmitrysoshnikov.com/ecmascript/chapter-7-2-oop-ecmascript-implementation/#property-accessors
The third code snippet should be
alert(a.toString()); ---->
wrapper = new Number(a); ---->
alert(a.toString());
Instead of
a.test = 100 ---->
wrapper = new Number(a); ---->
wrapper.test = 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment