Showing the changes to jsarray.c (1 of 2 files). Show all
Unified · Split
| @@ -2,7 +2,7 @@ · 1 unmodified line | |||
| 2 | #include "jsvalue.h" | 2 | #include "jsvalue.h" |
| 3 | #include "jsbuiltin.h" | 3 | #include "jsbuiltin.h" |
| 4 | 4 | ||
| 5 | static unsigned int js_getlength(js_State *J, int idx) | 5 | unsigned int js_getlength(js_State *J, int idx) |
| 6 | { | 6 | { |
| 7 | unsigned int len; | 7 | unsigned int len; |
| 8 | js_getproperty(J, idx, "length"); | 8 | js_getproperty(J, idx, "length"); |
| @@ -11,7 +11,7 @@ static unsigned int js_getlength(js_State *J, int idx) · 2 unmodified lines | |||
| 11 | return len; | 11 | return len; |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | static void js_setlength(js_State *J, int idx, unsigned int len) | 14 | void js_setlength(js_State *J, int idx, unsigned int len) |
| 15 | { | 15 | { |
| 16 | js_pushnumber(J, len); | 16 | js_pushnumber(J, len); |
| 17 | js_setproperty(J, idx, "length"); | 17 | js_setproperty(J, idx, "length"); |