Subj : delete operator To : netscape.public.mozilla.jseng From : Oscar Date : Mon Sep 27 2004 08:20 pm Hi all, I have a question regarding spidermonkeys support of the delete operator. It seems that contrary to my intepretation of ESMP-262 3rd edition we do not evaluate the unary expressions that follow the delete operator; instead we simply disregard the nodes that make out the unary expression and emmit a JSOP_TRUE. I just want to double check before adding a bug to bugzilla. The code of primary concern is ( js_EmitTree .... case TOK_DELETE: /* Under ECMA 3, deleting a non-reference returns true. */ pn2 = pn->pn_kid; switch (pn2->pn_type) { case TOK_NAME: ... break; case TOK_DOT: ... break; case TOK_LB: ... break; default: if (js_Emit1(cx, cg, JSOP_TRUE) < 0) return JS_FALSE; } break; ) Best regards Oscar .