From eed105f2b9d3fec89008f013587b830eb082e3eb Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Mon, 5 Jun 2006 21:07:22 +0000 Subject: [PATCH] Protect more properties on catch variables. bug 338709, r=brendan git-svn-id: svn://10.0.0.236/trunk@199061 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/jsinterp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/js/src/jsinterp.c b/mozilla/js/src/jsinterp.c index a51f32c7721..0961523a95e 100644 --- a/mozilla/js/src/jsinterp.c +++ b/mozilla/js/src/jsinterp.c @@ -5465,7 +5465,8 @@ interrupt: ok = OBJ_GET_ATTRIBUTES(cx, obj, id, NULL, &attrs); if (!ok) goto out; - if (!(attrs & JSPROP_READONLY)) { + if (!(attrs & (JSPROP_READONLY | JSPROP_PERMANENT | + JSPROP_GETTER | JSPROP_SETTER))) { /* Define obj[id] to contain rval and to be permanent. */ ok = OBJ_DEFINE_PROPERTY(cx, obj, id, rval, NULL, NULL, JSPROP_PERMANENT, NULL);