@@ -5430,14 +5430,13 @@ void MCProperty::eval_global_property_ctxt(MCExecContext& ctxt, MCExecValue& r_v
54305430 if (!MCPropertyInfoTableLookup (which, effective, t_info, t_is_array_prop))
54315431 t_info = lookup_mode_property (getmodepropertytable (), which, effective, t_is_array_prop);
54325432
5433- if (t_info != nil)
5433+ if (t_info != nil && t_info -> getter != nil )
54345434 {
54355435 MCExecFetchProperty (ctxt, t_info, *t_index, r_value);
54365436 return ;
54375437 }
54385438
5439- MCeerror->add (EE_PROPERTY_NOPROP , line, pos);
5440- ctxt . Throw ();
5439+ ctxt . LegacyThrow (EE_PROPERTY_NOPROP );
54415440}
54425441
54435442void MCProperty::eval_object_property_ctxt (MCExecContext& ctxt, MCExecValue& r_value)
@@ -5534,14 +5533,13 @@ void MCProperty::set_global_property(MCExecContext& ctxt, MCExecValue p_value)
55345533 if (!MCPropertyInfoTableLookup (which, effective, t_info, t_is_array_prop))
55355534 t_info = lookup_mode_property (getmodepropertytable (), which, effective, t_is_array_prop);
55365535
5537- if (t_info != nil)
5536+ if (t_info != nil && t_info -> setter != nil )
55385537 {
55395538 MCExecStoreProperty (ctxt, t_info, *t_index, p_value);
55405539 return ;
55415540 }
55425541
5543- MCeerror->add (EE_PROPERTY_CANTSET , line, pos);
5544- ctxt . Throw ();
5542+ ctxt . LegacyThrow (EE_PROPERTY_CANTSET );
55455543}
55465544
55475545void MCProperty::set_object_property (MCExecContext& ctxt, MCExecValue p_value)
0 commit comments