}
// Section 8.12.5
-void Object::__put__(ExecutionContext *ctx, String *name, const Value &value)
+void Object::__put__(ExecutionContext *ctx, String *name, Value value)
{
// clause 1
if (!__canPut__(ctx, name))
p->configurable = PropertyDescriptor::Set;
p->enumberable = PropertyDescriptor::Set;
p->writable = PropertyDescriptor::Set;
+ return;
}
reject:
virtual Value __get__(ExecutionContext *ctx, String *name);
virtual PropertyDescriptor *__getOwnProperty__(ExecutionContext *ctx, String *name);
virtual PropertyDescriptor *__getPropertyDescriptor__(ExecutionContext *ctx, String *name, PropertyDescriptor *to_fill);
- virtual void __put__(ExecutionContext *ctx, String *name, const Value &value);
+ virtual void __put__(ExecutionContext *ctx, String *name, Value value);
virtual bool __canPut__(ExecutionContext *ctx, String *name);
virtual bool __hasProperty__(ExecutionContext *ctx, String *name) const;
virtual bool __delete__(ExecutionContext *ctx, String *name);