eng->exception = Value::undefinedValue();
}
-PropertyDescriptor *ExecutionContext::lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp)
-{
- for (ExecutionContext *ctx = this; ctx; ctx = ctx->outer()) {
- if (ctx->withObject) {
- With *w = ctx->withObject;
- while (w) {
- if (PropertyDescriptor *pd = w->object->__getPropertyDescriptor__(this, name, tmp))
- return pd;
- w = w->next;
- }
- }
- if (ctx->activation) {
- if (PropertyDescriptor *pd = ctx->activation->__getPropertyDescriptor__(this, name, tmp))
- return pd;
- }
- }
- return 0;
-}
-
bool ExecutionContext::deleteProperty(String *name)
{
for (ExecutionContext *ctx = this; ctx; ctx = ctx->outer()) {
void throwReferenceError(Value value);
void throwUnimplemented(const QString &message);
- PropertyDescriptor *lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp);
void setProperty(String *name, Value value);
Value getProperty(String *name);
void inplaceBitOp(Value value, String *name, BinOp op);