Implement iterate trap for proxy handlers (568413, r=brendan).

This commit is contained in:
Andreas Gal
2010-05-27 12:03:25 -07:00
parent dd44403dba
commit e039715280
8 changed files with 507 additions and 275 deletions

View File

@@ -191,11 +191,12 @@ const char *const js_common_atom_names[] = {
"delete", /* deleteAtom */
"getOwnPropertyNames", /* getOwnPropertyNames */
"enumerate", /* enumerateAtom */
"fix",
"fix", /* fixAtom */
"has", /* hasAtom */
"hasOwn", /* hasOwnAtom */
"enumerateOwn" /* enumerateOwnAtom */
"enumerateOwn", /* enumerateOwnAtom */
"iterate" /* iterateAtom */
};
JS_STATIC_ASSERT(JS_ARRAY_LENGTH(js_common_atom_names) * sizeof(JSAtom *) ==