mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Alterna-fix for bug 354750, r=igor.
This commit is contained in:
parent
f8379245bc
commit
6602112a62
@ -278,8 +278,8 @@ iterator_self(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
}
|
||||
|
||||
static JSFunctionSpec iterator_methods[] = {
|
||||
{js_iterator_str, iterator_self, 0,0,0},
|
||||
{js_next_str, iterator_next, 0,0,0},
|
||||
{js_iterator_str, iterator_self, 0,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{js_next_str, iterator_next, 0,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
||||
@ -933,10 +933,10 @@ generator_close(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
}
|
||||
|
||||
static JSFunctionSpec generator_methods[] = {
|
||||
{js_iterator_str, iterator_self, 0,0,0},
|
||||
{js_next_str, generator_next, 0,0,0},
|
||||
{js_send_str, generator_send, 1,0,0},
|
||||
{js_throw_str, generator_throw, 1,0,0},
|
||||
{js_iterator_str, iterator_self, 0,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{js_next_str, generator_next, 0,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{js_send_str, generator_send, 1,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{js_throw_str, generator_throw, 1,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{js_close_str, generator_close, 0,JSPROP_READONLY|JSPROP_PERMANENT,0},
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user