This commit is contained in:
Dão Gottwald 2008-08-20 10:28:06 +02:00
commit 9ba0ecb507

View File

@ -1994,14 +1994,6 @@ CheckDestructuring(JSContext *cx, BindData *data,
return JS_FALSE;
}
#if JS_HAS_DESTRUCTURING_SHORTHAND
if (right->pn_extra & PNX_SHORTHAND) {
js_ReportCompileErrorNumber(cx, TS(tc->parseContext), right,
JSREPORT_ERROR, JSMSG_BAD_OBJECT_INIT);
return JS_FALSE;
}
#endif
fpvd.table.ops = NULL;
lhs = left->pn_head;
if (lhs && lhs->pn_type == TOK_DEFSHARP) {