Created
June 21, 2011 06:53
-
-
Save disolovyov/1037366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE: this has been promptly fixed | |
| http://code.google.com/p/v8/issues/detail?id=1491 | |
| > arr = Object.create([]) | |
| [] | |
| > arr.length = 'foobar' | |
| RangeError: Invalid array length | |
| at [object Context]:1:12 | |
| at Interface.<anonymous> (repl.js:171:22) | |
| at Interface.emit (events.js:64:17) | |
| at Interface._onLine (readline.js:153:10) | |
| at Interface._line (readline.js:408:8) | |
| at Interface._ttyWrite (readline.js:585:14) | |
| at ReadStream.<anonymous> (readline.js:73:12) | |
| at ReadStream.emit (events.js:81:20) | |
| at ReadStream._emitKey (tty_posix.js:307:10) | |
| at ReadStream.onData (tty_posix.js:70:12) | |
| > arr.length = 0 | |
| 0 | |
| > arr.length = 'foobar' | |
| 'foobar' | |
| > arr | |
| [ length: 'foobar' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment