Created
October 29, 2012 12:26
-
-
Save msmhrt/3973257 to your computer and use it in GitHub Desktop.
Test of fixed array
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
| $ lv5 --version | |
| lv5 0.0.2 (compiled Oct 29 2012 21:10:28) | |
| $ lv5 | |
| > var fixed = new Array(10); | |
| undefined | |
| > Object.defineProperty(fixed, "length", { writable: false }); | |
| ,,,,,,,,, | |
| > fixed[10] = 20 | |
| 20 | |
| > fixed[10] | |
| undefined | |
| > ^C | |
| $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment