StringObject* constructString(VM& vm, JSGlobalObject* globalObject, JSValue string) { StringObject* object = StringObject::create(vm, globalObject->stringObjectStructure()); object->setInternalValue(vm, string); return object; }
StringObject* constructString(ExecState* exec, JSGlobalObject* globalObject, JSValue string) { StringObject* object = StringObject::create(exec, globalObject->stringObjectStructure()); object->setInternalValue(exec->globalData(), string); return object; }