зеркало из https://github.com/mozilla/pjs.git
Fix JSOP_BINDNAME to have JOF_SET (which is now the same as JOF_ASSIGNING, so use that where it's a clearer name; 94693, r=me).
This commit is contained in:
Родитель
abb1ebebac
Коммит
6838a8c062
|
@ -3566,7 +3566,7 @@ JS_IsAssigning(JSContext *cx)
|
|||
continue;
|
||||
if (!fp || !(pc = fp->pc))
|
||||
return JS_FALSE;
|
||||
return (js_CodeSpec[*pc].format & JOF_SET) != 0;
|
||||
return (js_CodeSpec[*pc].format & JOF_ASSIGNING) != 0;
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(void)
|
||||
|
|
|
@ -82,7 +82,7 @@ typedef enum JSOp {
|
|||
#define JOF_POST 0x0400 /* postorder increment or decrement */
|
||||
#define JOF_IMPORT 0x0800 /* import property op */
|
||||
#define JOF_FOR 0x1000 /* for-in property op */
|
||||
#define JOF_ASSIGNING 0x2000 /* hint for JSClass.resolve, used for ops
|
||||
#define JOF_ASSIGNING JOF_SET /* hint for JSClass.resolve, used for ops
|
||||
that do simplex assignment */
|
||||
#define JOF_BACKPATCH 0x4000 /* backpatch placeholder during codegen */
|
||||
#define JOF_LEFTASSOC 0x8000 /* left-associative operator */
|
||||
|
|
|
@ -206,7 +206,7 @@ OPDEF(JSOP_FORELEM, 106,"forelem", NULL, 1, 2, 4, 0, JOF_BYTE |
|
|||
OPDEF(JSOP_POP2, 107,"pop2", NULL, 1, 2, 0, 0, JOF_BYTE)
|
||||
|
||||
/* ECMA-compliant assignment ops. */
|
||||
OPDEF(JSOP_BINDNAME, 108,"bindname", NULL, 3, 0, 1, 0, JOF_CONST|JOF_NAME|JOF_ASSIGNING)
|
||||
OPDEF(JSOP_BINDNAME, 108,"bindname", NULL, 3, 0, 1, 0, JOF_CONST|JOF_NAME|JOF_SET|JOF_ASSIGNING)
|
||||
OPDEF(JSOP_SETNAME, 109,"setname", NULL, 3, 2, 1, 1, JOF_CONST|JOF_NAME|JOF_SET|JOF_ASSIGNING)
|
||||
|
||||
/* Exception handling ops. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче