Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2010 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/338559 to your computer and use it in GitHub Desktop.
Save anonymous/338559 to your computer and use it in GitHub Desktop.
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